Git Product home page Git Product logo

web-sws-php-jwt's Introduction

Serato Web Services PHP JWT Build Status

Latest Stable Version

A PHP library containing common functionality for working with JWTs witin Serato Web Services web applications.

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/jwt": "~1.0"
	}
}

See Packagist for a list of all available versions.

Requirements

This library requires PHP 7.1 or above.

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

See PHPUnit documentation for more options.

Generate PHP API documentation

The Sami PHP API documentation generator can be used to generate PHP API documentation.

To generate documentation:

$ php sami.phar 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 tests/reports/coverage

Reports are generated in the tests/reports directory.

web-sws-php-jwt's People

Contributors

chris-die avatar harrietrc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.