PHP code example of creatcode / easyaddons

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

    

creatcode / easyaddons example snippets


Service::marketApiUrl();   // 读取宿主 config('rocket.addon_market_api_url')

'addon_market_api_url' => 'https://api.fastadmin.net',

public function configInit(&$params) { $params['summernote'] = [...]; }

$config = Event::trigger("config_init", $config, true) ?: $config;
bash
php think vendor:publish