All Projects → appstract → Lush Http

appstract / Lush Http

Licence: mit
Smart Http Client for PHP

Projects that are alternatives of or similar to Lush Http

diciotto
✈️ A no-nonsense PHP Http client focused on DX (PSR 18 compliant)
Stars: ✭ 23 (-61.67%)
Mutual labels:  curl, http-client
Insomnia
The open-source, cross-platform API client for GraphQL, REST, and gRPC.
Stars: ✭ 18,969 (+31515%)
Mutual labels:  http-client, curl
request-extra
⚡️ Extremely stable HTTP request module built on top of libcurl with retries, timeouts and callback API
Stars: ✭ 14 (-76.67%)
Mutual labels:  curl, http-client
curly.hpp
Simple cURL C++17 wrapper
Stars: ✭ 48 (-20%)
Mutual labels:  curl, http-client
Node Libcurl
libcurl bindings for Node.js
Stars: ✭ 447 (+645%)
Mutual labels:  http-client, curl
SimplecURL
Easy to use HTTP Client for PHP
Stars: ✭ 14 (-76.67%)
Mutual labels:  curl, http-client
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (+355%)
Mutual labels:  http-client, curl
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+88320%)
Mutual labels:  http-client, curl
Yii2 Httpclient
Yii 2 HTTP client
Stars: ✭ 406 (+576.67%)
Mutual labels:  http-client, curl
Requests
Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.
Stars: ✭ 3,433 (+5621.67%)
Mutual labels:  http-client, curl
1c http
Подсистема 1С для работы с HTTP
Stars: ✭ 48 (-20%)
Mutual labels:  curl, http-client
Urllib
Request HTTP(s) URLs in a complex world
Stars: ✭ 600 (+900%)
Mutual labels:  http-client, curl
php-curl-cookbook
PHP CURL Cookbook 📖
Stars: ✭ 83 (+38.33%)
Mutual labels:  curl, http-client
go-axios
HTTP Request package for golang.
Stars: ✭ 29 (-51.67%)
Mutual labels:  curl, http-client
Fetch
Asynchronous HTTP client with promises.
Stars: ✭ 29 (-51.67%)
Mutual labels:  curl, http-client
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+4738.33%)
Mutual labels:  http-client, curl
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+5491.67%)
Mutual labels:  http-client, curl
Ob Http
make http request within org-mode babel
Stars: ✭ 191 (+218.33%)
Mutual labels:  http-client, curl
Kurly
kurly is an alternative to the widely popular curl program, written in Golang.
Stars: ✭ 319 (+431.67%)
Mutual labels:  http-client, curl
Guzzle
Guzzle, an extensible PHP HTTP client
Stars: ✭ 21,384 (+35540%)
Mutual labels:  http-client, curl

Lush Http

Latest Version on Packagist Software License Build Status Total Downloads

Smart Http Client for PHP.

Lush is a small Http client that focuses on the most basic use cases. It also tries to format the responses to objects, so you don't have to. This makes Lush great for API requests.

Lush can be installed in any PHP application through composer, but has some extras when used in combination with Laravel.

Wip

This package is still in development, you are free to try it, without any warranty.

Todo

  • Support cookies
  • Docs

Requirements

  • PHP 5.6+
  • php_curl

Installation

You can install the package via composer:

composer require appstract/lush-http

Usage

The most basic usage:

    // Create a new instance
    $lush = new Lush();
    
    // Make a requests
    $response = $lush->url('http://example.com', ['id' => 3])
                        ->headers(['X-some-header' => 'some-value'])
                        ->get(); // Method (get, post, put, etc.)
    
    // Response returns JSON or XML?
    // then you can directly access it's properties
    echo $response->name;

Link to the docs will be added soon!

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].