PHP code example of yuinijika / anon

1. Go to this page and download the library: Download yuinijika/anon 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/ */

    

yuinijika / anon example snippets


use Anon\Core\Facade\Route;
use Anon\Controller\Admin\User\Index;

Route::get('/admin/users', [Index::class, 'index']);
Route::post('/admin/users', [Index::class, 'store']);

Route::get('/admin/users', 'Admin/User/Index@index');

Route::resource('/admin/users', 'Admin/User/Index');

Route::resource('/admin/users', 'Admin/User/Index', [
    'only' => ['index', 'show', 'store'],
]);
bash
php anon dev
text
app/controller/User.php
app/controller/User/Index.php
app/controller/Admin/User/Index.php
app/model/User.php
app/model/Admin/User.php
app/middleware/CheckLogin.php
app/middleware/Admin/CheckLogin.php
bash
php anon config:clear
php anon route:clear
php anon config:cache
php anon route:cache