PHP.GT

Latest releases

Dom: Full element functionality

Published on by Greg Bowler

This release marks the point where all features are implemented and tested for the current list of classes. Functionality lists were provided by MDN documentation for each DOM class.

Csrf: Update Dom namespaces

Published on by Greg Bowler

The PhpGt/Dom repository changed its namespaces to become consistent with the whole of WebEngine. This was a backwards breaking change, which has been fixed in this release.

Csrf: ArrayTokenStore

Published on by Greg Bowler

The abstract TokenStore class defines how Csrf tokens can be handled. This release includes the ArrayTokenStore mechanism for saving an easily serialisable data structure to your own persistent storage mechanism, such as the session.

Database: Variable argument queries for question mark parameters

Published on by Greg Bowler

Certain queries are better to use ? placeholders rather than :named placeholders, typically queries where the placeholder can be inferred by the query name.

For example, the getById query should only take the one parameter, which doesn’t need to be named “id” when calling.

Clean, improved syntax:

$customer = $db["customer"]->getById(123);

Rather than:

$customer = $db["customer"]->getById(["id" => 123]);

Database: Migration integrity

Published on by Greg Bowler

During migration, each migration script is hashed and stored in the database to prevent accidental edits to already-migrated scripts. The migration tool will halt without altering the database if any edit is detected.

WebEngine: Before, Go, After

Published on by Greg Bowler

When using multiple Logic objects, like when there are _Commons involved, the Before/Go/After order will be respected over all Logics.

Database: Updates to ResultSet

Published on by Greg Bowler

Rows are now Iterable. Exceptions are thrown by default. Parameters have their placeholder characters set by default. ResultSet::hasResult added.

Fetch: Response content

Published on by Greg Bowler

Now the response’s text() and json() promises are implemented.

There is a lot of refactoring and unit testing to be done now that the proof of concept is complete.

Fetch: Request, complete

Published on by Greg Bowler

The requests are being made asynchronously now. Response object is to be developed next. For now, the curl object is returned as the response.

Fetch: Promises

Published on by Greg Bowler

Promises are working and tested, marking the true start of this library’s progress. There is no cURL functionality built in yet.