1. Go to this page and download the library: Download phastasf/app library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phastasf / app example snippets
return [
// Core middleware (eware::class,
\Phast\Middleware\SessionMiddleware::class,
// Client IP detection middleware (must be before routing)
\Phast\Middleware\ClientIpMiddleware::class,
// \Phast\Middleware\AuthMiddleware::class, // Uncomment to enable authentication
// Add your custom middleware here (before routing)
// \App\Middleware\CustomMiddleware::class,
\Phast\Middleware\RoutingMiddleware::class,
\Phast\Middleware\DispatcherMiddleware::class,
];
return [
// Framework providers (ConfigProvider must be first)
\Phast\Providers\ConfigProvider::class,
\Phast\Providers\CacheProvider::class,
// ... other framework providers ...
// Your custom providers
\App\Providers\CustomServiceProvider::class,
];
'seed' => [
'DatabaseSeeder',
'UserSeeder',
],
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.