PHP code example of julio101290 / boilerplate
1. Go to this page and download the library: Download julio101290/boilerplate 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/ */
julio101290 / boilerplate example snippets
public $views = [
'login' => 'julio101290\boilerplate\Views\Authentication\login',
'register' => 'julio101290\boilerplate\Views\Authentication\register',
'forgot' => 'julio101290\boilerplate\Views\Authentication\forgot',
'reset' => 'julio101290\boilerplate\Views\Authentication\reset',
'emailForgot' => 'julio101290\boilerplate\Views\Authentication\emails\forgot',
'emailActivation' => 'julio101290\boilerplate\Views\Authentication\emails\activation',
];
public $aliases = [
'login' => \Myth\Auth\Filters\LoginFilter::class,
'role' => \julio101290\boilerplate\Filters\RoleFilter::class,
'permission' => \julio101290\boilerplate\Filters\PermissionFilter::class,
];
public $$ruleSets = [
\Myth\Auth\Authentication\Passwords\ValidationRules::class,
];
protected $casts = [
'username' => 'string',
'email' => 'string',
'firstname' => 'string',
'lastname' => 'string',
'active' => 'boolean',
'force_pass_reset' => 'boolean',
];
class Boilerplate extends BaseConfig
{
public $appName = 'Boilerplate';
public $dashboard = [
'namespace' => 'julio101290\boilerplate\Controllers',
'controller' => 'DashboardController::index',
'filter' => 'permission:back-office',
];
// App/Config/Boilerplate.php
bash
php spark boilerplate:install
bash
php spark serve