PHP code example of ccheng / event-manager

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

    

ccheng / event-manager example snippets


return [
	'modules' => [
		'event' => [
                'class'=>'ccheng\eventmanager\Module',
		]
		...
	]
];

event_manager_config:
[
    "event_level"=>[
        "success"=>[
            "label"=>"良好",
            "color"=>"#324523"
        ],
        ...
    ],
    "event_system"=>[],
]

qcloud_config:
[
    "q_cloud_config"=>StdClass{
            public $bucket;
            public $app_id;
            public $secret_id;
            public $secret_key;
        },
    "q_cloud_config_for_external"=>[
            'region'      => 'sh',
            'credentials' => [
                'secretId'  => null,
                'secretKey' => null,
            ],
    ]
]

    'controllerMap' => [
        'event' => 'ccheng\eventmanager\api\EventController',
    ],

php composer.phar