maatify / jwt
maatify.com
Installs: 123
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/maatify/jwt
Requires
- firebase/php-jwt: ^6.10
- maatify/functions: ^5
- maatify/json: ^5
- maatify/logger: ^5
README
JWT
maatify.dev JWT handler, known by our team
Installation
composer require maatify/jwt
To Use
Create Class Extend JWTAssist
<?php use JwtHandler\JWTAssist; class JwtCheck extends JWTAssist { protected string $ssl_secret = '6GSSLr%70SecrectH1IAbtestzoHB0!0bI'; protected string $ssl_key = 'M7u9SSLR3&0testwXRAIbKEYGoYJjK'; protected string $ssl_cipher_algo = 'AES-128-ECB'; public function Hash(): string { return $this->Encode('www.maatify.dev', 60, ['array of data']); } public function Dehash(string $jwt_token): \stdClass { return $this->Decode($jwt_token); } }