Download the PHP package hitraa/openforge-curl without Composer
On this page you can find all versions of the php package hitraa/openforge-curl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hitraa/openforge-curl
More information about hitraa/openforge-curl
Files in hitraa/openforge-curl
Package openforge-curl
Short Description A modern, open-source PHP cURL-based HTTP request handler for OpenForge projects and general use.
License MIT
Homepage https://github.com/hitraa/openforge-curl
Informations about the package openforge-curl
OpenForge Curl
A modern, open-source PHP cURL-based HTTP request library designed for simplicity, flexibility, and clean abstraction of HTTP requests.
✨ Features
- ✅ Simple, object-oriented API
- ✅ Supports GET, POST, PUT, PATCH, DELETE, HEAD
- ✅ JSON and raw body support
- ✅ Query parameter builder
- ✅ Bearer token support
- ✅ Flexible headers and options
- ✅ PSR-4 autoloading
- ✅ Easily testable
📦 Installation
Use Composer:
`
🚀 Usage
🔍 GET request with query parameters
📤 POST request with JSON body
🧾 POST raw body
🔐 Bearer Authentication
Here's a clean and professional README block you can insert under your Usage
or Advanced
section to explain the sslVerify(false)
feature:
🔐 Disable SSL Verification (for testing only)
If you're working in a local development environment, unsecured server or dealing with self-signed certificates, you may want to disable SSL verification temporarily:
⚠️ Warning: Disabling SSL verification is not recommended for production use. It makes your HTTP client vulnerable to MITM (Man-in-the-Middle) attacks.
🧪 Auto-disable SSL for Local/Test Environment
You can optionally disable SSL verification based on an environment variable:
OR
By default, it checks APP_ENV for local or testing.
You may also customize:
⚠️ This doesn't load a .env file — you must ensure environment variables are set manually or via your framework.
🧪 Testing
Run tests via PHPUnit:
Make sure phpunit.xml
is at the root of the project.
📁 Project Structure
🧑💻 Author
Harshal Khairnar
Founder, Hitraa Technologies
📧 [email protected]
📄 License
MIT License © 2025 Hitraa Technologies