avz-cmf/zaboy-rest
作为中间件的REST资源
4.2.2
2017-01-07 14:57 UTC
Requires
- avz-cmf/zaboy-installer: ^2.1
- phpunit/phpunit: ^4.0
- psr/http-message: ^1.0
- psr/log: ^1.0
- symfony/filesystem: >=2.7
- xiag/rql-parser: ^1.0
- zendframework/zend-config: ^2.6
- zendframework/zend-db: ^2.8
- zendframework/zend-diactoros: ^1.1
- zendframework/zend-http: ^2.5
- zendframework/zend-json: ^3
- zendframework/zend-servicemanager: ^3.0
- zendframework/zend-stdlib: ^3
- zendframework/zend-stratigility: ^1.1
Requires (Dev)
- phpunit/phpunit: ^4.0
- dev-master
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.7
- 4.1.6
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.9.9
- 3.9.8
- 3.9.7
- 3.9.6
- 3.9.5
- 3.9.4
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.8
- 3.8.7
- 3.8.6
- 3.8.5
- 3.8.2
- 3.8.1
- 3.7.9
- 3.7.8
- 3.7.7
- 3.7.6
- 3.7.5
- 3.7.4
- 3.7.3
- 3.7.0
- 3.6.8
- 3.6.7
- 3.6.6
- 3.6.5
- 3.6.4
- 3.6.3
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.0.2
- 2.0.0
- 1.2.0
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is not auto-updated.
Last update: 2024-09-14 18:47:40 UTC
README
启动测试
设置环境变量 'APP_ENV' = "dev"
;
在启动测试之前,在 config/autoload
中创建 test.local.php
文件,并添加对 httpDataStore
的设置,将 localhost 参数中的 URL 更改为可以访问 web 应用的地址。
示例
return [ "dataStore" => [ 'testHttpClient' => [ 'class' => 'zaboy\rest\DataStore\HttpClient', 'tableName' => 'test_res_http', 'url' => 'http://localhost/api/rest/test_res_http', 'options' => ['timeout' => 30] ], 'testEavOverHttpClient' => [ 'class' => 'zaboy\rest\DataStore\HttpClient', 'url' => 'http://localhost/api/rest/entity_product', 'options' => ['timeout' => 30] ], 'testEavOverHttpDbClient' => [ 'class' => 'zaboy\rest\DataStore\HttpClient', 'url' => 'http://localhost:9090/api/rest/db'. EavAbstractFactory::DB_NAME_DELIMITER . 'entity_product', 'options' => ['timeout' => 30] ], ] ];
将库中的 index.php
和 .htaccess 复制到项目的公共目录。
运行脚本 composer lib-install
,它将在数据库中创建表。
使用库
要在应用程序中使用此库,请遵循 此说明