1. Go to this page and download the library: Download lifespikes/laravel-bare 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/ */
lifespikes / laravel-bare example snippets
#!/usr/bin/env php
/*
* This takes care of bootstrapping the application
* and its paths. While it might look different, it's still
* the same as a regular Laravel installation in terms
* of behavior. Laravel Bare just implements Laravel
* original scaffold differently, but the framework itself
* is kept untouched.
*/
use function LifeSpikes\LaravelBare\Bootstrap\bare;
/* Define before any operations take place, for accuracy */
define('LARAVEL_START', microtime(true));
/* Composer autoloader */
/* Assuming we're in public/index.php */
use function LifeSpikes\LaravelBare\Bootstrap\bare;
define('LARAVEL_START', microtime(true));
bare([
'base' => __DIR__, /* Root Dir */
/* Everything else solves relative to base */
'public' => 'static',
'cache' => 'storage/cache',
...
])->web();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.