PHP code example of penoaks / milky-framework
1. Go to this page and download the library: Download penoaks/milky-framework 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/ */
penoaks / milky-framework example snippets
$fw = () function sets up a basic framework instance and loads Composer classes.
* The first argument sets the application directory.
* The second argument (optional) sets the 'config' directory. Not defined (or null), will set it as 'config' under the application directory.
*/
$fw->init( __DIR__ );
/*
* join() function takes over the current request and returns a response.
* Be sure that no data was output before this, else problems could arise.
*/
$fw->join();