Was hoping to ask for a code review of my last project for 2020, a base PHP JWT library for being included in larger projects.

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • effortless-hs256-jwt

    Listen, JWT doesn't need to be awful. You want an HMAC SHA256 shared secret style JWT? Create, read, update, validate, and revoke with project specific config file looked for in common configuration locations.

  • You have an odd construct signature (secret, configPath, dsn, dbuser, dbpass) with 4 parameters from the config, the config file being #2? Then you have 3 methods of setting the config. Then the config keys don't match the config property or the called method

  • slim-jwt-auth

    PSR-7 and PSR-15 JWT Authentication Middleware

  • This is similar to how this library does it - https://github.com/tuupola/slim-jwt-auth

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts