{"repo":"descope/descope-php","free":true,"listed":false,"github":"https://github.com/descope/descope-php","clone":"git clone https://github.com/descope/descope-php.git","description":"PHP library used to integrate with Descope","language":"PHP","stars":44,"topics":["authentication","descope","php","sdk","sdk-php"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"by Descope Overview The Descope SDK for PHP provides convenient access to Descope authentication. You can read more on the Descope Website. Getting started Requirements - PHP 7.3+ Installation Install the package with Composer : You'll need to set up a .env file in the root directory with your Descope Project ID, which you can get from the Console like this: Using the SDK In order to use the SDK you will need to initialize a DescopeSDK object with your Descope Project ID you defined in your .env file, like this: HTTP Timeouts Every HTTP call the SDK makes is bounded so a slow or unresponsive network peer cannot hold a PHP worker indefinitely. By default each request times out after 60 seconds , with a 10 second connection-establishment timeout. Set requestTimeout (a positive number of seconds, may be fractional) to change the overall per-request deadline: For full control over the transport (proxies, TLS, custom handlers, or your own timeout strategy) you can supply a pre-configured Guzzle-compatible client as httpClient . When you do, the SDK uses it as-is and does not apply its own timeout settings, so configure timeouts on the client itself: Debug/Verbose Logging The SDK supports optional debug/verbose logging to help troubleshoot API request issues. Debug logging is disabled by default to keep your application logs clean in production. When enabled, the SDK will log detailed error information to PHP's error log (via error log() ) when API requests fail, including: - HTTP ","default_branch":null,"files":null,"tree":[],"storefront":"/r/descope","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/descope/descope-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}