Download the PHP package riverwaysoft/api-tools without Composer
On this page you can find all versions of the php package riverwaysoft/api-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package api-tools
Api tools
Installation
composer req riverwaysoft/api-tools
What's inside?
TelephoneObject
Wrapper around libphonenumber + PhoneNumberType for DoctrineType. Configuration:
ApiPlatform extra
Extra serializers (Enum, TelephoneObject, Money)
Configuration:
Extra filters (look riveradmin ;))
- RiverAdminEnumSearchFilter
- RiverAdminSearchFilter
- RiverAdminBooleanFilter
- AbstractFullTextSearchFilter
Domain Events
Usage:
Or it can be done automatically with doctrine adapter:
Configuration:
InputValueResolver
A set of automatic serializers of HTTP POST body and GET query into typed objects.
#[Query]
attribute usage:
Configuration in services.yml:
UnicodeIgnoreOrderJsonDriver
A driver for the phpunit-snapshot-assertions library. This driver is responsible for 3 main things:
1) Show unicode characters unescaped in json, so you'll see "£" instead of "\u00a3"
2) Ignore property order. Example equal json {a: 1, b: 2}
and {b: 2, a: 1}
3) Ignore order of array elements in json. Example equal json arrays [{a: 1}, {b: 2}]
and [{b: 2}, {a: 1}]
How to use
Add the following trait to all your tests:
Use assertMatchesJsonUnicodeSnapshot
instead of the assertMatchesJsonSnapshot
.
All versions of api-tools with dependencies
ext-intl Version *
giggsey/libphonenumber-for-php Version ^8.11
myclabs/php-enum Version ^1.7
moneyphp/money Version ^3
symfony/intl Version ^5.3|^6.0|^6.2
symfony/polyfill-uuid Version ^1.23
phpdocumentor/reflection-docblock Version ^5.2
symfony/serializer Version ^5.3|6.0.1|^6.2