PHP code example of uniondrug / common

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

    

uniondrug / common example snippets



/**
 * 示例Service
 * @author wsfuyibing <[email protected]>
 * @date 2017-11-17
 */
namespace App\Services;
use Pails\Services\RelateChildService;

/**
 * 示例Service应用场景
 * 1. 有隶属关系
 * 2. 有上/下级
 * @package App\Services
 */
class ExampleService extends RelateChildService
{
}
text
/ vendor/uniondrug/common/src
├── Controllers
│   ├── ServiceClientController.php         // Service客户端
│   ├── ServiceServerController.php         // Service服务端
│   └── TestsController.php                 // 单元测试调度
├── Helpers
│   ├── ImageSize.php
│   ├── Session.php
│   ├── SessionClient.php
│   └── SessionData.php
├── Interfaces
│   ├── RelateChildInterface.php
│   ├── RelateFetchInterface.php
│   ├── RelateWriteInterface.php
│   ├── SingleChildInterface.php
│   ├── SingleFetchInterface.php
│   └── SingleWriteInterface.php
├── Services
│   ├── FrameworkService.php
│   ├── RelateChildService.php
│   ├── RelateService.php
│   ├── SingleChildService.php
│   └── SingleService.php