karabinse/fabriq-connector
最新稳定版本:1.8.0
Composer 安装命令:
composer require karabinse/fabriq-connector
包简介
Fabriq Saloon Connector
README 文档
README
Installation
You can install the package via composer:
composer require karabinse/fabriq-connector
You can publish the config file with:
php artisan vendor:publish --tag="fabriq-connector-config"
This is the contents of the published config file:
return [ 'base_url' => env('FABRIQ_CONNECTOR_BASE_URL', 'http://localhost'), 'enable_cache' => env('FABRIQ_CONNECTOR_ENABLE_CACHE', false), 'cache_expiry' => env('FABRIQ_CONNECTOR_CACHE_EXPIRY', (3600 * 24) * 7), 'cache_driver' => env('FABRIQ_CONNECTOR_CACHE_STORE', 'file'), 'fabriq_connector_token' => env('FABRIQ_CONNECTOR_TOKEN', ''), ];
Usage
$connector = new FabriqConnector(locale: 'en'); $request = new GetContactsRequest(params: ['include' => 'content']); $response = $connector->send($request); // Response // "data": [ // { // "id": 1, // "locale": "sv", // "name": "Frans Rosander", // "email": "Frans@sten.com", // "phone": "+46 (44) 28 71 11", // "mobile": "+46 (0)702 - 99 09 41", // "published": 1, // "sortindex": 1, // "created_at": "2024-04-11T11:33:17.000000Z", // "updated_at": "2024-05-30T08:18:48.000000Z", // "content": { // "data": { // "body": "", // "position": "", // "image": { // "id": 56, // "file_name": "IMG_5966_FransR.jpg", // "src": "", // "thumb_src": "", // "webp_src": "", // "srcset": "", // "alt_text": "", // "caption": null, // "mime_type": "image\/jpeg", // "size": 23076, // "width": 150, // "height": 187, // "custom_crop": false, // "responsive": "", // "x_position": "50%", // "y_position": "50%", // "meta_id": 13 // }, // "enabled_locales": null // } // } // } // ]
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 741
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-30