云小票机SDK-cloud-print

非官方云小票机SDK,支持飞鹅云,芯烨云,易联云,快递100,映美云,中午云,佳博云,优声云,365智能云打印等

请求日志开启

\Pkg6\cloudPrint\Kernel\BaseClient::$request_log=true;

自定义缓存

基于https://packagist.org/packages/psr/simple-cache#1.0
$printer = \Pkg6\cloudPrint\Factory::Feieyun([
    'user' => '',
    'ukey' => '',
    'cache' => [
        //必须定义
        "class" => \Pkg6\Cache\cache\driver\File::class,
        //其他选项
        'expire'        => 0,
        'cache_subdir'  => true,
        'prefix'        => '',
        'path'          => './cache/',
        'hash_type'     => 'md5',
        'data_compress' => false,
        'tag_prefix'    => 'tag:',
        'serialize'     => [],
    ],
]);

案例

基于365智能云打印的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Printcenter([
    'key' => '',
])->printer;

基于中午云的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Zhongwuyun([
    'appid'     => '******',
    'appsecret' => '******',
])->printer;

基于 优声云 的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Ushengyun([
    'appId'     => '10001',
    'appSecret' => '**********',
])->printer;

基于佳博云的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Poscom([
    'memberCode' => '',
    'apiKey'     => '',
])->printer;

基于快递100的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Kuaidi100([
    'key' => '',
    'secret' => '',
])->printer;

基于易联云的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Yilianyun([
    'client_id'     => '',
    'client_secret' => '',
])->printer;

基于映美云的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Jolimark([
    'app_id'  => '',
    'app_key' => '',
])->printer;

基于 芯烨云 的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Xpyun([
    'user'    => '',
    'userKey' => '',
])->printer;

基于 飞鹅云 的 PHP 接口组件

$printer = \Pkg6\cloudPrint\Factory::Feieyun([
    'user' => '',
    'ukey' => '',
])->printer;

支持厂商


qmister
88 声望1 粉丝

引用和评论

0 条评论