1. Go to this page and download the library: Download ultrascn/admin 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/ */
ultrascn / admin example snippets
class NavigationFactory implements \UltraScn\Admin\INavigationFactory
{
/**
* @param int|string|NULL $userId
*/
public function create($userId)
{
$navigation = new \Inteve\Navigation\Navigation;
$navigation->addPage('/', 'Dashboard', 'Admin:Dashboard:');
$navigation->addPage('users', 'Users', 'Admin:User:');
$navigation->addPage('users/roles', 'Roles', 'Admin:UserRole:');
return $navigation;
}
}
class SignFormFactory implements UltraScn\Admin\Forms\ISignFormFactory
{
// ...
}
class SignPresenter extends \UltraScn\Admin\Presenters\SignPresenter
{
}
class DashboardPresenter extends \UltraScn\Admin\Presenters\SecuredPresenter
{
}
class UserPresenter extends \UltraScn\Admin\Presenters\SecuredPresenter
{
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.