1. Go to this page and download the library: Download jdz/adminui 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/ */
jdz / adminui example snippets
use JDZ\AdminUi\IconPrefix;
IconPrefix::use('icon icon-'); // -> class="icon icon-plus"
final class MediasController extends AdminController
{
use JDZ\AdminUi\Controller\MediasControllerTrait;
protected function mediaConfig(): MediaConfig { /* where the library lives */ }
protected function mediaTranslate(string $key, array $params = []): string { … }
protected function mediaRenderFragment(string $view, array $vData): string { … }
protected function mediaRenderPage(ResponseInterface $r, string $v, array $d): ResponseInterface { … }
protected function mediaCsrfToken(): string { … }
protected function mediaStateLoad(): array { … }
protected function mediaStateSave(array $state): void { … }
protected function mediaThumbUrl(string $relPath, int $width): string { … }
protected function mediaSelectorImage(string $relPath, int $width): ?array { … }
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.