What if URI Templates could work both ways? Template → URI Template ← URI With the next minor version of league/uri, you will be able to extract variables from a URI into an ExtractionResult. Same template. Both directions. #PHP #URI #URITemplate
Ignace Nyamagana Butera
@nyamsprod.com
Software developer. Creator of PHP centric package like league/csv, league/uri and bakame/http-structured-fields. Sponsor me at http://github.com/sponsors/nyamsprod
league/csv warnings on the README page are getting bigger on each PHP version upgrade 😂 😂 #PHP86 #maintenance #CSV
The Duration class in Tokei 0.2.0 introduces the modulo() and dividedInto() methods that provide an easy way to retrieve the remainder of a duration division. This is especially useful when dealing with circular ranges. #duration #localtime #php #circular-range bakame-php.github.io/tokei/
🎉 tokei 0.2.0 — codename Botan is out! New features, bug fixes, BC breaks, and official docs: bakame-php.github.io/tokei/ Tokei is a small #PHP package for working with local time, durations, and intervals. Try it, share feedback, and leave a ⭐ if you find it useful: github.com/bakame-php/t...
Tokei. Duration, Local time and interval primitives without timezone complexity - Tokei
A framework-agnostic PHP library to handle duration, time, circular 24-hour intervals, and interval sets, without timezone complexity.
bakame-php.github.io
Ember 1.3 is out! 🔥🐘 I wrote a blog post about the new features of 1.2 & 1.3: plugin system, access and runtime logs live visualisation, upstreams health, Docker Hub... a lot to discover! Everything you need to know 👉 les-tilleuls.coop/en/blog/embe...
#PHP streams have a built-in notification system. Set a callback in the stream context. Get called on CONNECT, MIME_TYPE, FILE_SIZE, PROGRESS, COMPLETED. Download progress bars. In pure PHP. No curl_setopt. No ReactPHP. This callback has existed since PHP 5.2!
#PHP has a built-in stream filter that converts character encoding on the fly. convert.iconv.FROM/TO. Attach it to any stream. Data is re-encoded as it flows through. Read a Shift_JIS file as UTF-8. No iconv() call. No mb_convert. Just fopen + filter.
The #JsonPath @symfony component just got an upgrade! Per the RFC, it is now possible to declare custom functions to be parsed and used in your JSON paths. The component is now complete: RFC-compliant, extendable... Maybe you have ideas for it? github.com/symfony/symf...
A straight forward package in PHP to parse, manipulate and generate The Cache-Status HTTP Header Field. github.com/bakame-php/h... #php #http-cache-status #http-structured-fields
GitHub - bakame-php/http-cache-status: Cache-Status HTTP Response Header Field
Cache-Status HTTP Response Header Field. Contribute to bakame-php/http-cache-status development by creating an account on GitHub.
github.com
nyamsprod.com/blog/dealing... a new blog post explaining the new fetures in the #PHP #URI Toolkit but also encourage developers to participate in shaping the future of PHP
Dealing with a PHP BC break | nyamsprod
nyamsprod.com
I just released version 7.8.0 of all my #PHP #URI packages. The new version adds support for BackedEnum everywhere, improve string coercion and allow migrating and mitigating the BC breaks introduced in http_build_query in #PHP8.4 full changelog github.com/thephpleague...
Last release of the year #CSV github.com/thephpleague... also last release which supports #PHP8.1 . It adds Enum formatting support on writing
Release version 9.28.0 · thephpleague/csv
Added EnumFormatter to format Enum for CSV serialization Deprecated None Fixed None Remove None This is the last version supporting PHP8.1
github.com
League URI Toolkit 7.7.0 is released. 🎉 - It fixes a regression introduced in version 7.6.0 - adds a redact URI components API via the Modifier class - Improve host parsing and host handling Learn more on the uri.thephpleague.com documentation website. #PHP #URI #OSS
This is now live and for everyone to use just do `composer require league/uri-polyfill league/uri-component` and you will be good to go with version 7.6
Here's a sneak peak at what you will be able to do with version 7.6 of the PHP league uri toolkit. The toolkit adds support for the new PHP URI extension and gives you a nice API to work with URI in PHP. learn more on uri.thephpleague.com #PHP #URI #RFC3986 #WHATWGURL
I am very happy to announce that the League #URI toolkit for #PHP developers 7.6 has been released! This release includes a new uri-polyfill package, a new URN object, a new FragmentDirectives object and tons of improvements please check the uri.thephpleague.com for more information
uri.thephpleague.com
Here's a sneak peak at what you will be able to do with version 7.6 of the PHP league uri toolkit. The toolkit adds support for the new PHP URI extension and gives you a nice API to work with URI in PHP. learn more on uri.thephpleague.com #PHP #URI #RFC3986 #WHATWGURL
Finishing adding these imports everywhere in league/uri codebase version 7.6 is almost ready!! #PHP #URI #OSS #thephpleague
There's a new league/uri package in town guess which one it is ? uri.thephpleague.com It will be release with version 7.6 of all the other packages 🥳 #PHP #URI #polyfill special thanks to github.com/TimWolla, github.com/kocsismate and github.com/TRowbotham for the help and support
Coming in the next version of league/csv named constructors simplification. All the current named constructors are deprecated in favor of just two. which will simplify the user choice and improve DX #csv #php #oss #thephpleague Read the doc for more informations csv.thephpleague.com/9.0/connecti...
Coming in the next minor version of #LeagueCSV the JsonConverter #ndjson support is improved you can now do the following #php #csv #oss
New minor versions of the league/uri packages are coming in a couple of weeks. They will contain new features and deprecations. Please head over the documentation site or play around with the dev-master and report bugs or regressions now. #PHP #URI #OOS uri.thephpleague.com
Modern API to process URIs in PHP - URI
Modern API to process URIs in PHP
uri.thephpleague.com
PHP warnings: Sometimes harmless 🤷 Sometimes critical 💥 Always annoying 😅 My fix: a Warning class to cloak or trap them, once and for all. nyamsprod.com/blog/dealing... #php #warnings #error_handling
Dealing with Warnings in PHP, the Right Way | nyamsprod
nyamsprod.com
A new version of #stackwatch is out with tons of new features, fixes and removal for instance the new version nows comes with a PHPUnit helper traits to ease testing callback or method performances. See more on the documentation website bakame-php.github.io/stackwatch/ #php #profiling #OOP
I created a new package called #stackwatch and If someone is interested I have 3 open issues on #stackwatich which I need help for github.com/bakame-php/s... to tag the first stable version. Of course feel free to add more issues if you test the package #php #profiling
bakame-php/stackwatch
A minimalist multi-metric PHP Profiler. Contribute to bakame-php/stackwatch development by creating an account on GitHub.
github.com
Periodic reminder: stop using boolean as options flags in #PHP use Enum instead. Boolean flags are hard to read and to remember and lead to tricky bugs and requiring a trip to the method/function definition, Enum are explicit and readable and offer granularity instead of a simple yes/no answer
I have updated my RFC around data encoding in PHP to allow users to migrate to the new API. wiki.php.net/rfc/data_enc... comments and remarks are welcomed #PHP #RFC #base64 #base16 #base58 #base32
PHP: rfc:data_encoding_api
wiki.php.net
github.com/bakame-php/a... is almost stable if you could give a spin an report issues or improvement it would be nice. It is a nice non brainer straightforward profiler in PHP which seats between Xdebug and you double call to microtime 😂 Give it a shot. #PHP #profiler #OSS
GitHub - bakame-php/aide-profiler: A minimalist multi-metric PHP Profiler
A minimalist multi-metric PHP Profiler. Contribute to bakame-php/aide-profiler development by creating an account on GitHub.
github.com