Download the PHP package initphp/curl without Composer

On this page you can find all versions of the php package initphp/curl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package curl

InitPHP Curl

Curl library to help you make advanced HTTP requests with PHP.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Requirements

Installation

Usage

This library can be used as HTTP client for your API service. Example:

Methods

client()

Creates a new client object.

getResponse()

Returns the result of the curl operation.

The values that can be used for the $key parameter and its explanation are explained below.

setUrl()

Defines URL information for cURL.

Throws \InvalidArgumentException if it is not a valid URL.

setHeader()

Adds a header for the request.

Example :

setHeaders()

For the request; Adds one or more headers via an associative array.

Example :

setMethod()

Defines the HTTP Request method.

The $method parameter can take the following values;

setBody()

HTTP Request is used to manually define the content information.

setVersion()

Defines the HTTP version of the HTTP request.

The $httpVersion parameter can take the following values;

setUserAgent()

Defines the User Agent information to be reported to the server in the cURL process.

Example :

setReferer()

Defines HTTP referer information to be reported to the server.

setAllowRedirect()

Defines whether requests follow redirects. If this method is not used, the redirects are not followed.

setTimeout()

Defines the wait limit for the request in seconds or milliseconds.

If $isMicrosecond is FALSE, the value is used as seconds.

setField()

Defines a data to be sent as POST.

setFields()

It defines the data to be sent by POST with an associative array.

setSSL()

Defines the SSL configurations of the cURL request.

setProxy()

Defines the proxy to be used by cURL.

setUpload()

It sends a file to be uploaded to the server.

Example (Single):

Example (Multi):

getInfo()

It is the curl_getinfo() function in this library.

getError()

It is the curl_error() function in this library.

setOpt()

It is the curl_setopt() function in this library.

setOptions()

It is the curl_setopt_array() function in this library.

handler()

cURL starts and executes.

save()

After cURL is handled, it writes the content to the specified file.

Returns the number of bytes written on success.

Example :

setCookie()

Defines a cookie to be sent with cURL.

Example :

setCookies()

Defines cookies as multiple with an associative array.

Example :

setCookieJarFile()

It tells the file path where the cookies values to be sent to the server will be kept or kept.

If the specified file exists, cookies are read from the file and sent to the server. CURLOPT_COOKIEFILE

If the specified file does not exist, cookies from the server are written to the file. CURLOPT_COOKIEJAR

Example :

Credits

License

Copyright © 2022 MIT License


All versions of curl with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package initphp/curl contains the following files

Loading the files please wait ....