Download the PHP package antogkou/laravel-oauth2-client without Composer
On this page you can find all versions of the php package antogkou/laravel-oauth2-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antogkou/laravel-oauth2-client
More information about antogkou/laravel-oauth2-client
Files in antogkou/laravel-oauth2-client
Package laravel-oauth2-client
Short Description A Laravel package for OAuth2 integration
License MIT
Informations about the package laravel-oauth2-client
Laravel OAuth2 Client
A robust Laravel package for OAuth2 Client Credentials flow integration with automatic token management.
Features
- 🚀 Automatic Token Management - Handles token acquisition and refresh
- 🔧 Multiple Service Support - Configure multiple OAuth2 providers
- 📦 Caching - Stores tokens securely using Laravel Cache
- 📝 Structured Logging - Detailed error logging for failed requests
- 🛡️ Security - Sensitive data redaction in logs
- ✅ Laravel 11+ Ready - Full support for latest Laravel versions
Installation
Publish configuration file:
Configuration
Config File (config/oauth2-client.php
)
Environment Variables
I'll help update the Usage section of the README to better document the different ways to make POST, PUT, and PATCH requests. Here's the improved version:
`
Request Options
The package supports various request options that can be passed as an array:
JSON Payload
Form Data
Multipart/Form-Data (File Uploads)
Custom Headers
Available Methods
Response Handling
Error Handling
The package throws Antogkou\LaravelOAuth2Client\Exceptions\OAuth2Exception
for errors:
Testing
Security
- 🔒 Never commit client secrets - Always use environment variables
- 🛡️ Log Redaction - Automatically redacts sensitive data from logs
- 🔄 Token Security - Tokens are never stored in permanent storage
Contributing
Contributions welcome! Please follow:
- Fork the repository
- Create a feature branch
- Submit a pull request
License
MIT License - See LICENSE for details.
Support
For issues and feature requests, please create a GitHub issue.
All versions of laravel-oauth2-client with dependencies
laravel/framework Version ^11.0|^12.0
guzzlehttp/guzzle Version ^7.8