serato / sup-sdk-php
A PHP SDK for sending user profile attributes and events to the Serato User Profile application.
Installs: 126 303
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 15
Forks: 13
Open Issues: 1
Requires
- php: ^7.1 || ^8.0
- aws/aws-sdk-php: ^3.0
- ramsey/uuid: ~3.6
Requires (Dev)
- enlightn/security-checker: ^1.4 || ^2
- monolog/monolog: ^1.21.0
- phpstan/phpstan: ^1.4
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^7 || ^8
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-10-25 04:07:47 UTC
README
A PHP library for sending user profile attributes and events to the Serato User Profile application.
Adding to a project via composer.json
To include this library in a PHP project add the following line to the project's
composer.json
file in the require
section:
{ "require": { "serato/sup-sdk-php": "dev-master" } }
See Packagist for a list of all available versions.
Requirements
This library requires PHP 7.1 or greater.
Style guide
Please ensure code adheres to the PHP-FIG PSR-2 Coding Style Guide
Use PHP_CodeSniffer to validate your code against coding standards:
$ ./vendor/bin/phpcs
PHPStan
Use PHPStan for static code analysis:
$ vendor/bin/phpstan analyse
Unit tests
Configuration for PHPUnit is defined within phpunit.xml.
To run tests:
$ php vendor/bin/phpunit
Integration tests
Integration tests with AWS services can be run via phpinit:
$ php vendor/bin/phpunit --group aws-integration
Generate PHP API documentation
The Sami PHP API documentation generator can be used to generate PHP API documentation.
To generate documentation:
$ vendor/bin/sami.php update phpdoc.php
Documentation is generated into the docs\php
directory.
Configuration for Sami is contained within phpdoc.php.
Generate code coverage report
If you have phpdbg installed you can generate a code coverage report with phpunit:
$ phpdbg -qrr ./vendor/bin/phpunit --coverage-html reports/coverage
Reports are generated in the reports
directory.