ryxo / framework
A lightweight and fast PHP framework designed for sprinting through development.
Installs: 30
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/ryxo/framework
Requires
- php: ^8.1
This package is not auto-updated.
Last update: 2025-12-23 18:13:30 UTC
README
Introduction
Welcome to the documentation for the Ryxo Framework. Ryxo is a lightweight PHP framework designed to provide a simple yet powerful foundation for building web applications.
Getting Started
Installation
To install Ryxo, follow these steps:
- Clone the repository:
git clone https://github.com/gyanendra-baghel/ryxo.git - Install dependencies:
composer install
Configuration
- Autoloading: Ryxo follows the PSR-4 autoloading standard. Make sure the
Appnamespace points to yourapp/directory.
"autoload": { "psr-4": { "App\\": "app/" } }
Routing
Define routes in the routes.php file:
// routes.php $app->get('/', [SiteController::class,'index'); $app->get('/blogs/{id}',function($req, $res, $params){ // ... });
Templating
Ryxo includes a basic templating engine. Views are located in the app/views directory.
Run the Application
Run the built-in PHP server:
php -S localhost:8000 -t public
Visit http://localhost:8000 in your browser.
Features
Routing
Ryxo provides a simple routing system to handle HTTP requests. Define routes in the routes.php file using the get and post methods.
$app->get('/path', Controller::class,'method');
Templating
The included templating engine allows you to render views easily. Use the render method in your controllers.
// Inside a controller method return $this->response->render('viewName', ['data' => $data]);
Controllers
Create controllers in the app/Controllers directory. Controllers handle the logic for specific routes.
// Example HomeController namespace App\Controllers; use Ryxo\Controller; class HomeController extends Controller { public function index() { return $this->response->render('home'); } }
Contributing
We welcome contributions to Ryxo! Follow the guidelines in the CONTRIBUTING.md file.
License
Ryxo is open-source software licensed under the MIT License.
Support
For support, please open an issue on the GitHub repository.