This repo is a skeleton project. The actual framework code is at github.com/hassankhan/Sonic.
You need PHP >= 5.3.0, and Composer is highly recommended.
composer create-project hassankhan/sonic-skeleton <YOUR_PROJECT_NAME>
composer install
Coming soon
// All the stuff in config/
After running composer install
, your project root should now look like this:
.
├── .htaccess
├── composer.json
├── composer.lock
├── index.php
├── config/
├── content/
├── plugins/
├── templates/
└── vendor/
Crack open index.php
in your text editor and you'll see
require 'config/bootstrap.php'; // The application is set up here
$sonic->run(); // Run app
Ensure the .htaccess
and index.php
files are in the same public-accessible directory. The .htaccess
file should at the very minimum contain this code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Sonic hasn't been tested on other configurations yet, but because of how similar it is to Slim, the same instructions should work.
You can check out more in-depth documentation here.
Sonic Skeleton is released under the MIT public license.