Download the PHP package enishant/magiccurl without Composer
On this page you can find all versions of the php package enishant/magiccurl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enishant/magiccurl
More information about enishant/magiccurl
Files in enishant/magiccurl
Package magiccurl
Short Description MagicCurl PHP Library
License MIT
Homepage https://github.com/enishant/magiccurl
Informations about the package magiccurl
MagicCurl PHP Library
Prerequisites
- A minimum of PHP 7.x upto 8.1
- PHP cURL extension
Installation
-
If your project using composer, run the below command
- If you are not using composer, download the latest release from the releases section.
You should download the
magiccurl.zip
file. After that, includeMagicCurl.php
in your application and you can use the MagicCurl methods by creating it's instance.
Note: This PHP library follows the following practices:
- Namespaced under
Enishant\MagicCurl
- Options are passed as an array instead of multiple arguments wherever possible
- All requests and responses are communicated using PHP CURL extension
Basic Usage
Instantiate the MagicCurl php instance with/without providing an options.
Options
create_log
- Creates log for user agent, header, request and response.log_path
- Provide log file path.debug
- Display all php errors.user_agent
- Custom User Agent name.
Create log file, update onwership & permissions
sudo touch /path/to/magiccurl.log
sudo chown www-data:www-data /path/to/magiccurl.log
sudo chmod 644 /path/to/magiccurl.log
The resources can be accessed via the $client
object. All the methods invocations follows the following pattern
Contributing
All contributions for enhancement and fixes will be accepted through pull request, you can also contribute by reporting issues, Click here to report an issue.
License
The MagicCurl PHP Library is released under the MIT License. See LICENSE file for more details.