PHP code example of julces / oneframework
1. Go to this page and download the library: Download julces/oneframework 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/ */
julces / oneframework example snippets
// index.php
OnePHP\App();
$app->get('/:name',function( $name ) use ( $app ){//Action
echo "Hello $name";
});
$app->listen();
$app->respond( function() use ( $app ){
return $app->ResponseHTML('<p> This is a response with code 404. </p>', 404);
});