Skip to content
@PhpGt

PHP.Gt

Minimalist, modular, modern PHP development that gives respect to existing web technologies.

Minimalist, modular, modern PHP development

PHP.Gt is a collection of web development tools that make up WebEngine — an application development toolkit aimed at streamlining development and respecting web standards.

Web frameworks offer many features, but often come with steep learning curves or imposing rules. The motivation behind this project is the belief that what a framework can offer can be achieved by eliminating code rather than adding more.

// TODO: This README will be used, along with each repository's individual Wikis, as the content to www.php.gt - it's currently WIP.

Who is PHP.Gt for?

The overall aim throughout all PHP.Gt repositories is to provide an alternative, minimalistic approach to web development. If you're tired of working with the so called "full stack", there might be something of interest to you here.

All PHP.Gt repositories are designed to be inclusive to novice developers. Each repository is designed to operate independently, allowing developers to leverage individual components without necessarily needing to adopt the entire framework or possess prior knowledge of WebEngine. This modular approach not only enhances flexibility but also promotes a more focused, purpose-driven development experience.

WebEngine itself provides a "batteries-included" default configuration and has an accessible entry point for beginners. However, its capabilities extend far beyond basic use-cases; WebEngine is robust enough to power large-scale, real-world applications serving millions of users.

Whether you're just starting your web development journey or seeking a new perspective on established practices, you are invited to explore WebEngine further by visiting the Getting Started page.

Get to know PHP.Gt

WebEngine

Jump right in to some full featured tutorials, or follow the getting started guide for a good overview of the development process in WebEngine applications.

The user guide starts at "the request-response lifecycle", which exposes the logic that makes WebEngine work, from the first line of the first PHP script, all the way through to the page being sent back to the browser.

The Document Object Model (DOM)

Modern web development is underpinned by the DOM, but using its benefits is usually constrained to the client-side.

Having a full-featured DOM in your server-side code enhances the way dynamic pages can be built. Utilising a standardised object-oriented interface means the page can be ready-processed as Multi-page Applications (MPAs), benefitting browsers, web servers, content delivery networks, and end-users.

On top of the standard DOM API, you can take advantage of intuitive templating, server-side validation, and more.

Bring your own database

The Object Relational Mapper (ORM) automates database persistence, but allows you to get your hands dirty with custom SQL queries when you need to.

There's no database connection made until you use one, so you're not forced to use any technologies until they're a requirement of your application's functionality - sometimes a directory structure or a CSV file is all you need!

The full stack

Client-side development is handled automatically through the build process. A sensible set of default build steps can be extended when needed.

A micro framework on the client side gives your pages live updates and transitions out of the box.

Pinned Loading

  1. WebEngine WebEngine Public

    Minimalistic, ergonomic PHP toolkit.

    PHP 26 6

  2. Installer Installer Public

    Install PHP.Gt/CliTools for `gt` command access.

    PHP 1

  3. www.php.gt www.php.gt Public

    [in-development] The PHP.Gt website.

    CSS 1

Repositories

Showing 10 of 41 repositories
  • Json Public

    Structured, type-safe, immutable JSON objects, and schema validation.

    PhpGt/Json’s past year of commit activity
    PHP 0 1 1 2 Updated Feb 14, 2025
  • DataObject Public

    Structured, type-safe, immutable data transfer.

    PhpGt/DataObject’s past year of commit activity
    PHP 0 2 0 2 Updated Feb 14, 2025
  • Orm Public

    [in development] Object relational mapper.

    PhpGt/Orm’s past year of commit activity
    PHP 0 0 4 3 Updated Feb 14, 2025
  • .github Public
    PhpGt/.github’s past year of commit activity
    0 1 0 0 Updated Feb 13, 2025
  • Input Public

    Encapsulated and type-safe user input.

    PhpGt/Input’s past year of commit activity
    PHP 3 MIT 3 9 2 Updated Feb 13, 2025
  • CssXPath Public

    Translate CSS selectors to XPath queries.

    PhpGt/CssXPath’s past year of commit activity
    PHP 21 MIT 11 3 3 Updated Feb 4, 2025
  • FileCache Public

    Cache data in local files.

    PhpGt/FileCache’s past year of commit activity
    PHP 0 1 2 2 Updated Jan 30, 2025
  • StyleGuide Public

    PHP coding styleguide.

    PhpGt/StyleGuide’s past year of commit activity
    4 MIT 5 1 0 Updated Jan 30, 2025
  • DomTemplate Public

    Bind dynamic data to reusable HTML components.

    PhpGt/DomTemplate’s past year of commit activity
    PHP 17 MIT 4 23 (1 issue needs help) 1 Updated Jan 28, 2025
  • WebEngine Public

    Minimalistic, ergonomic PHP toolkit.

    PhpGt/WebEngine’s past year of commit activity
    PHP 26 MIT 6 26 (2 issues need help) 2 Updated Jan 3, 2025

Top languages

Loading…

Most used topics

Loading…