Download the PHP package jshensh/php-curl-class without Composer

On this page you can find all versions of the php package jshensh/php-curl-class. 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 php-curl-class

Custom Curl (嗯懒得取名字)

对 PHP 自带 curl 的一个简单的封装,支持链式操作。

安装

使用示例

GET 方法

POST 方法

POST 上传文件

PUT 方法,传输 JSON 数据

手动设置 Cookie

Cookie 字符串/数组

Header

自定义 CurlOpt

并发请求

设置项

杂项

多次请求同一地址

代理

设置全局配置

设置全局 CurlOpt 配置项

设置请求签名(以微信支付为例)

Laravel / Lumen 支持

ApiDebugger

ApiDebugger 是一个简单的类似 Postman 的单页接口调试工具。

CustomCurl 起初只是一个服务端的 Curl 封装,由于在随后的使用过程中发现,我们一般都用它来模拟请求其他业务的接口,甚至是搭建反向代理,于是就产生了对反向代理接口进行调试的需求,作为并不喜欢使用 Postman 的我就写了这个工具(后端狗用上世纪 jQuery 码的东西,不要笑)。

因为浏览器限制,在一般情况下 ApiDebugger 只能调试当前域名下的所有资源,但我们可以通过在被调试目标上添加 Access-Control-Allow-Origin 等 Header 或者使用反向代理解决问题。

开始使用

一般情况下,只要在 routes/web.php 中加入以下代码即可使用

我们可以向 view 传递以下数据

预置 Api 列表

app/Http/Controller 目录发布 ApiListController.php

在之前的基础上继续设置路由

由于 Lumen 不支持 vendor:publish 操作,请手动将 ApiListController.php 复制至对应目录

注册 Provider

由于 Lumen 不具备 Laravel 的 Discovered Package 功能,所以我们在使用 Lumen 时,需要手动注册 Provider。

请向 /bootstrap/app.phpRegister Service Providers 代码段中添加以下代码

版权信息

Custom Curl 遵循 GPL-3.0 开源协议发布,并提供免费使用。

版权所有 Copyright © 2018 - 2021 by jshensh (http://233.imjs.work)

All rights reserved。

更多细节参阅 LICENSE


All versions of php-curl-class with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
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 jshensh/php-curl-class contains the following files

Loading the files please wait ....