This removes api authentication with token in favor of signature method. Refactored code and clean up. It add more unit test plus code coverage in test/coverage. - Added : mardown documentation. - Changed : model Stats::getQuestionStats to pass question as route parameter - Changed : now requests need to have a signature generated with a private key (crm password) using hmac sha256 wrapping url, method and parameters - Changed : now timestamp will timeout if request is slower than "timestampTimeout", this means crm will reject the request - Changed : throw ValidationException s instead of TypeErrors - Changed : timestamp has to be send in request with a DateTime format, it also has to a UTC value - Fixed : Change WPCRM dynamic session key, this could prevent spoofing session in some cases. - Fixed : closure validation - Fixed : model mutator not catching reflectionException - Fixed : really send json request using Guzzle internal lib methods. - Removed : Api AUTH system with api token - Removed : ApiError::needAuth - Removed : composer vlucas/dotenv, .env file is not handled any more. - Removed : LoginException - Removed : memcached dependency - Removed : need of memcached - Removed : unused service provider - Removed : WpCrm::forceLogin - Removed : WpCrm::sendArcadiaMailDefault - Removed : WpCrm::sendArcadiaMailGame - Updated : PHPCS rules, phpcs fixes and refactored code
44 lines
1 KiB
JSON
44 lines
1 KiB
JSON
{
|
|
"name": "ldc/ldccrmv2client",
|
|
"type": "library",
|
|
"description": "LDC CRM Client V2",
|
|
"license": "MIT",
|
|
"version": "3.0.0",
|
|
"authors": [
|
|
{
|
|
"name": "Jérémy Munsch",
|
|
"email": "jeremy.munsch@ldc.fr",
|
|
"homepage": "https://jeremydev.ovh"
|
|
}
|
|
],
|
|
"homepage": "https://github.com/kwaadpepper",
|
|
"keywords": [
|
|
"Laravel",
|
|
"CRM",
|
|
"Client",
|
|
"LDC"
|
|
],
|
|
"require": {
|
|
"ext-curl": "^7.3",
|
|
"php": "^7.3",
|
|
"kwaadpepper/enum": "^2.1",
|
|
"guzzlehttp/guzzle": "^7.4",
|
|
"respect/validation": "^2.2"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "~9.0",
|
|
"squizlabs/php_codesniffer": "^3.5",
|
|
"orchestra/testbench": "^6.13",
|
|
"slevomat/coding-standard": "^7.0"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"LDC\\LDCCRM\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"LDC\\LDCCRM\\Tests\\": "tests"
|
|
}
|
|
}
|
|
}
|