1. Go to this page and download the library: Download cblink-service/kernel 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/ */
cblink-service / kernel example snippets
$config = [
// use private url
'private' => true,
'base_url' => ' private url',
'app_id' => 'app id',
'key' => 'key id',
'secret' => 'secret key',
];
// Application is your package App
// Application must be extends Cblink\\Service\Kernel\ServiceContainer
$app = new Application($config);
$app->logger->info('test', []);
// TestServiceProvider must be declared Pimple\ServiceProviderInterface
// app call register method or implement method 'getCustomProviders'
$app->register(TestServcePovider::class);
// used
$app->test->xxx();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.