Top 23 PHP HTTP Projects
-
I am busy building a small application that monitors websites using guzzle. My idea is to run through the list of websites alphabetically and make a guzzle request to each and update my table with the http response codes of each site.
-
http-foundation
The HttpFoundation component defines an object-oriented layer for the HTTP specification.
This seems extremely similar to parameter bag - how is this different/better?
-
SonarLint
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
-
http-kernel
The HttpKernel component provides a structured process for converting a Request into a Response.
In that regard, someone posted symfony's test suite as an example of good PHPUnit testing. The first file I clicked on demonstrated how worthless (IMO) unit testing can be: https://github.com/symfony/http-kernel/blob/v6.0.8/Tests/CacheClearer/ChainCacheClearerTest.php
-
http-message
The purpose of this PSR is to provide a set of common interfaces for HTTP messages as described in RFC 7230 and RFC 7231
Project mention: [OOP] Best practice in structuring class hierarchies. I would like an API request to contact 2 different platforms, each in (the same) 2 different ways (GET and POST). How should I structure my class hierarchy? Thanks :) | reddit.com/r/PHPhelp | 2022-05-14 -
-
-
Requests
Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries. (by rmccue)
Project mention: API Client Design Across Languages - Part 2 - Making Requests | dev.to | 2022-03-29Like Node.js, the PHP ecosystem has quite a number of good HTTP request libraries. Guzzle is perhaps one of the most well known, but there are many other popular libraries out there. Luckily, PHP also has some interface standards around HTTP clients and messages, particularly PSR-7, PSR-17, and PSR-18,
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
Project mention: API Client Design Across Languages - Part 2 - Making Requests | dev.to | 2022-03-29
Like Node.js, the PHP ecosystem has quite a number of good HTTP request libraries. Guzzle is perhaps one of the most well known, but there are many other popular libraries out there. Luckily, PHP also has some interface standards around HTTP clients and messages, particularly PSR-7, PSR-17, and PSR-18,
-
-
mix
☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、Swow、WorkerMan、FPM、CLI-Server (by mix-php)
Project mention: Anyone have production examples or prototypes you built in Swoole? | reddit.com/r/PHP | 2022-03-27 -
Project mention: API Client Design Across Languages - Part 2 - Making Requests | dev.to | 2022-03-29
Like Node.js, the PHP ecosystem has quite a number of good HTTP request libraries. Guzzle is perhaps one of the most well known, but there are many other popular libraries out there. Luckily, PHP also has some interface standards around HTTP clients and messages, particularly PSR-7, PSR-17, and PSR-18,
-
http-client
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously. (by symfony)
There are many ways but I prefer using the http-client package: composer require symfony/http-client.
-
PHP VCR
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
-
Project mention: Validate your PHP API tests against OpenAPI definitions – a Laravel example | dev.to | 2022-03-22
The Symfony folks thought of this, however, and provided a bridge that converts HttpFoundation objects to PSR-7 ones. The bridge simply needs a PSR-7 and PSR-17 factory, for which they suggest to use Tobias Nyholm's PSR-7 implementation.
-
-
More specifically, you're probably looking for https://github.com/amphp/http-client.
-
Project mention: How do I automatically update a payment from pending to accepted? | reddit.com/r/laravel | 2021-11-06
If you are using Laravel and Stripe you can take a look at spatie stripe webhook package that simplifies a lot of boilerplate code.
-
-
-
-
Project mention: Best Way to Check Status Code of Each URL in a Sitemap | reddit.com/r/learnprogramming | 2022-01-07
I want to avoid DOSing myself, so I am wondering what might be the best way to go about this? I was suggested to use a PHP library called Cigar https://github.com/Brunty/cigar. It seems to do what I want, but when I tried it on the sitemap out on my local machine and my dev environment, it crashed both. Is there an efficient way to achieve this without overloading the server?
-
-
http-router
:tada: Release 2.0 is released! Very fast HTTP router for PHP 7.1+ based on PSR-7 and PSR-15 with support for annotations/attributes and OpenAPI (Swagger) Specification
PHP HTTP related posts
- [OOP] Best practice in structuring class hierarchies. I would like an API request to contact 2 different platforms, each in (the same) 2 different ways (GET and POST). How should I structure my class hierarchy? Thanks :)
- Queues vs Schedule to monitor websites
- How do you test your code ?
- How the PHP Middleware Pattern works and can easily be applied
- Slower than Go, Java and JS?
- Craft a Kraken API client with PHP8 (1/2)
- API Client Design Across Languages - Part 2 - Making Requests
Index
What are some of the best open-source HTTP projects in PHP? This list will help you:
Project | Stars | |
---|---|---|
1 | Guzzle | 21,829 |
2 | http-foundation | 8,162 |
3 | http-kernel | 7,641 |
4 | http-message | 6,513 |
5 | web-frameworks | 6,322 |
6 | LaravelS | 3,571 |
7 | Requests | 3,456 |
8 | HTTPlug | 2,346 |
9 | Buzz | 1,873 |
10 | mix | 1,785 |
11 | HTTPFul | 1,729 |
12 | http-client | 1,505 |
13 | PHP VCR | 1,035 |
14 | Nyholm PSR-7 | 900 |
15 | laravel-webhook-server | 626 |
16 | http-client | 605 |
17 | laravel-stripe-webhooks | 377 |
18 | Laminas Diactoros | 303 |
19 | guzzler | 276 |
20 | request-migrations | 166 |
21 | cigar | 155 |
22 | Retrofit | 151 |
23 | http-router | 148 |
Are you hiring? Post a new remote job listing for free.