Been digging a little deeper on #psr7 and #GuzzleHttp lately, juggling a bit with async, promises and closures in #php and this has been incredibly fun. ❤️

"Users can provide both encoded and decoded query characters. Implementations ensure the correct encoding as outlined in getQuery()." —UriInterface, PSR-7

If I'm building a library that uses PSR-7 interfaces, how do I know whether I can provide encoded or decoded query characters to the implementation, since my library doesn't know what implementation(s) it's dealing with?

#PHP #PHPFIG #PSR7

OMG! WTF kind of AI abomination is this?!

https://www.youtube.com/watch?v=ZnoRf9o9YUI

#PHP #PSR7 #PHPFIG

PSR 7 Tutorial Simplifying HTTP Messages with PHP FIG

YouTube

I'm happy to announce the release of league/uri v7 . Please head to the documentation website to see what's new and what has changed.

The goal was to make the packages easier to install, use and abuse. Hope you like it
https://uri.thephpleague.com/ #php #url #uri #psr7 #thephpleague

I will try to share some notes on the new features and the new approach to the packages

Modern API to process URIs in PHP - URI

Modern API to process URIs in PHP

#PSR7 just got 2 new tags! The evolution vote passed, and we got:

1.1 with argument types
2.0 with return types

Both require PHP 7.2; more details available in the PSR meta doc, section 7.2, "Type additions": https://www.php-fig.org/psr/psr-7/meta/#72-type-additions

PSR-7 Meta Document - PHP-FIG

We're a group of established PHP projects whose goal is to talk about commonalities between our projects and find ways we can work better together.

Do you use #psr7 in #php? I've finally opened the PSR Evolution vote to add parameter and return type declarations:

https://groups.google.com/g/php-fig/c/BChJkYoIpRM/m/gbSivVypBQAJ

Two week comment period, hopefully followed by a vote. Would love feedback; my review of the proposed patches looks very promising so far!

PSR-7 evolution proposal for parameter and return type declarations

Different weekend project than planned, wrapping a @[email protected] / stream into a #PSR7 compatible stream: https://github.com/wyrihaximus/reactphp-psr-7-stream #php
GitHub - WyriHaximus/reactphp-psr-7-stream: Decorate ReactPHP streams as PSR-7 streams

Decorate ReactPHP streams as PSR-7 streams. Contribute to WyriHaximus/reactphp-psr-7-stream development by creating an account on GitHub.

GitHub
✨ I'm happy to announce the 1st #release of openmetrics-php/exposition-text v0.1.0 - A #PHP implementation of the text exposition format of @[email protected] - It Ships with a #PSR7 response for easy app integration.Would 🧡 to get some feedback! #prometheus https://github.com/openmetrics-php/exposition-text
openmetrics-php/exposition-text

Implementation of the text exposition format of OpenMetrics - openmetrics-php/exposition-text