wsw / loja-integrada
此包已被弃用且不再维护。未建议替代包。
与Loja Integrada Web服务客户集成
v1.3.1
2016-11-03 20:53 UTC
Requires
- php: ~5.5|~7.0
- cakephp/validation: ^3.2
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
README
与电子商务系统Loja Integrada的API集成
安装
通过Composer
$ composer require wsw/loja-integrada
使用
use WSW\LojaIntegrada\Credentials; use WSW\LojaIntegrada\Resources\Category; use WSW\LojaIntegrada\Client\LojaIntegradaException; try { $credentials = new Credentials( '0a0000a0-aaa0-0000-a000-aa0a000000aa', '0a0000a0-aaa0-0000-a000-aa0a000000aB' ); $category = new Category($credentials); // returns all records in the category $result = $category->findAll(); // returns the related category to id $resultID = $category->find(123); // returns the categories related to the ids $resultIDs = $category->find([1, 10, 50, 99]); // returns the related category to the external id $resultIdExternal = $category->idExternal()->find(999); } catch (LojaIntegradaException $e) { echo $e->getMessage(); } catch (\InvalidArgumentException $e) { echo $e->getMessage(); }
测试
$ composer test
贡献
请参阅CONTRIBUTING和CONDUCT以获取详细信息。
安全
如果您发现任何安全相关的问题,请发送电子邮件至ronaldo@whera.com.br,而不是使用问题跟踪器。
致谢
许可证
MIT许可证(MIT)。请参阅许可证文件获取更多信息。