Fasty - a fast and simple PHP framework
(Currently under heavy development)
Installation
Installing Fasty is super easy, just follow the steps bellow
composer create-project fasty/framework project_name
Or download the latest stable release (https://github.com/FastyPHP/fasty/releases) and then run
composer install
- Set the web servers root directory to the /Public folder
- Open console/command prompt and cd into the Fasty root folder
- Run composer install and wait until composer finishes downloading the necessary files (if don't have composer set up, you can do so by visiting this link: https://getcomposer.org/doc/00-intro.md )
- Set up the config.php file to match your own settings
- Create something awesome!
Fasty doesn't require any console work on its own but it needs it for the initial installation
Benchmarks
All of the benchmarks are done using Apaches benchmark tool called ApacheBench version 2.3
They are also done on my local machine (which isn't high spec), so the results are somewhat low
Benchmark command
ab -n 1000 -c 100 http://localhost
Machine specs
- Processor: Intel Core i5-4210U @ 1.70GHz
- RAM: 8 GB
- System: 64-bit Windows 10
The actual results
- Fasty - 53.91 requests/second (MySQL connection, default file cache system)
- Laravel - 13.59 requests/second (MySQL connection, default file cache system)
- CakePHP - 10.83 requests/second (MySQL connection, default file cache system)
Requirements
Fasty requires the following services
- PHP 7.1 or greater
- MariaDB 10.1/MySQL 5.7.14 or greater