1. Go to this page and download the library: Download darkorsa/cordo 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/ */
darkorsa / cordo example snippets
shell
php cordo list
php
protected static $register = [
'Shop\Users',
// add you packages here
];
php
$limit = $config->get('users.limit');
php
$translator->trans('hello', [], 'mail', 'en')
php
/**
* @var League\Event\EmitterInterface
*/
$emitter->emit('users.created', new UserCreated($command->email()));
php
$emitter->addListener(
'users.created',
static function ($event, UserCreated $userCreated) use ($container) {
$listener = new UserCreatedListener($container);
$listener->handle($userCreated);
}
);
shell
php queue-worker &
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.