PHP code example of spoom-php / core
1. Go to this page and download the library: Download spoom-php/core 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/ */
spoom-php / core example snippets
Spoom\Core\Environment;
use Spoom\Core\File;
// create an environment (if you wish, it's also optional in most cases) to store some globals for your application. Storing it in a variable is
// optional, you can access the application anywhere using the `Environment::instance()` static method
$spoom = new Environment(
// used environment's name
Environment::DEVELOPMENT,
// root directory of the application
new File( __DIR__ )
);
// do something fancy..
bash
$ composer