Orchid is lightweight web application framework. This library attempts to comply with PSR-1, PSR-2, PSR-4 and PSR-11.
Some parts of the project were influenced by: Laravel, Slim and Symfony Framework's. Thank you!
- PHP >= 7.0
Run the following command in the root directory of your web project:
composer require aengine/orchid
Create an index.php file with the following contents:
<?php
require_once 'vendor/autoload.php';
$app = app();
$app->router()->get('/hello/:name', function ($request, $response, $args) {
return "Hello, " . $args['name'];
});
$app->run();Open your browser on page: http://[hostname]/hello/World
Please see CONTRIBUTING for details.
The Orchid Framework is licensed under the MIT license. See License File for more information.
Work with Key-Value storage
composer require aengine/orchid-memory
Attach the database in the project by using a wrapper around the PDO
composer require aengine/orchid-database
Validate incoming data
composer require aengine/orchid-filter