PHP code example of stormsq / developer-presenter

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

    

stormsq / developer-presenter example snippets


'providers' => [
     STORMSQ\DeveloperPresenter\DeveloperPresenterProvider::class,
 ];
'aliases' => [
    'PresenterBuilder' => STORMSQ\DeveloperPresenter\PresenterBuilder::class,
 ],

return [
    'icon'=>[
        'useitag'=>'1', //是否使用i tag
        'linkclass'=>'0',
        'default'=>'fa fa-sort', //預設css
        'asc'=>'fa fa-sort-asc', //正序 css
        'desc'=>'fa fa-sort-desc', //倒序 css
    ]          
];



namespace App\Prestenters;
use STORMSQ\DeveloperPresenter\PresenterBuilder;

class DemoPresenter extends Presenter{

    public function __construct()
    {
        //
    }
}
bash
php artisan vendor:publish
bash
php artisan developer:make:presenter "Presenter名稱" //Presenters/Admin/DemoPresenter