PHP.GT

Latest releases

Dom: July 2023 patch release

Published on by Greg Bowler

What’s Changed

Full Changelog: https://github.com/PhpGt/Dom/compare/v4.1.2...v4.1.3

Routing: July 2023 release

Published on by Greg Bowler

What’s Changed

New Contributors

Full Changelog: https://github.com/PhpGt/Routing/compare/v1.1.0...v1.1.1

DomTemplate: Introduce data-element

Published on by Greg Bowler

This release introduces a helper attribute, data-element, which can be used to remove unbound elements from the document. Documentation here: https://github.com/PhpGt/DomTemplate/wiki/automatically-remove-unbound-elements

What’s Changed

Full Changelog: https://github.com/PhpGt/DomTemplate/compare/v3.2.0...v3.2.1

FileCache: Stable release

Published on by Greg Bowler

This library has been used within PHP.Gt/WebEngine applications for a while now. There have been a few tweaks along the way, but a stable release is being made today to allow Composer’s minimum stability to be increased where currently in use.

What’s Changed

Full Changelog: https://github.com/PhpGt/FileCache/compare/v0.2.0...v1.0.0

Fetch: Refactor web APIs to phpgt/http

Published on by Greg Bowler

This release refactors the web API classes used in this repository into the upstream phpgt/http library.

What’s Changed

New Contributors

Full Changelog: https://github.com/PhpGt/Fetch/compare/v1.1.0...v1.1.1

Sync: Sync as symlinks

Published on by Greg Bowler

In this minor release, a new feature is added: sync a directory/file by symlinking it in place. This is built specifically to address a common web development pattern: serving content from outside of the web root, without having to synchronise all files/directories every time there’s a change.

What’s Changed

Full Changelog: https://github.com/PhpGt/Sync/compare/v1.2.9...v1.2.10

ServiceContainer: Functions without a type are ignored

Published on by Greg Bowler

In this minor patch release, we skip any functions on the ServiceContainer that do not have a return type noted. This is so, when extending your own ServiceContainer, you will be allowed to put logic in the constructor (constructors are not allowed to have a return type).

What’s Changed

Full Changelog: https://github.com/PhpGt/ServiceContainer/compare/v1.3.0...v1.3.1

Http: Asynchronous response body functions

Published on by Greg Bowler

When you have a Response object, you can now call the standard text(), json(), etc. functions, which return a Promise that will resolve with the appropriate type. When set up with an async loop, this can achieve multiple concurrent response streaming.

This was implemented for usage within https://www.php.gt/fetch

What’s Changed

Full Changelog: https://github.com/PhpGt/Http/compare/v1.1.10...v1.2.0

Promise: Simplify exception handling

Published on by Greg Bowler

In this minor patch release, exceptions that are handled in the chain already are stored. This is to prevent an rejection being handled more than once per call.

Promise: Uncaught exceptions are thrown on main thread

Published on by Greg Bowler

In this minor patch release, to match the expectations of working with code that throws exceptions, when there is no catch() method in the promise chain, any exceptions that are raised will be thrown to the main thread, causing a fatal error.

What’s Changed

Full Changelog: https://github.com/PhpGt/Promise/compare/v2.2.1...v2.2.2