Download the PHP package pressgang-wp/pressgang without Composer

On this page you can find all versions of the php package pressgang-wp/pressgang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pressgang

PressGang

Hijacking Your WordPress Development Workflow

Latest Stable Version Build Status Total Downloads License

Ahoy there! Modernize your WordPress development and ship your WordPress themes faster than ever. PressGang anchors your workflow in modern development practices. Build cleaner, faster, smarter themes and navigate your development course to calmer seas.

๐Ÿ“– Read the full documentation at docs.pressgang.dev

Overview

PressGang is a WordPress parent theme framework that brings Timber and Twig templating, MVC-inspired controllers that act as view models, and Laravel-inspired, config-driven bootstrapping (convention over configuration) to WordPress โ€” all on a modern Composer and PSR-4 foundation. Build child themes on a clean, opinionated architecture with a clear separation of concerns, and spend your time on features, not plumbing.

โœจ Key Features

๐Ÿงญ Core Concepts

โš™๏ธ Config-Driven Bootstrapping

Everything in PressGang starts with a config file. Arrays in config/ declare what gets registered โ€” post types, taxonomies, sidebars, blocks, scripts, styles, and more. Each config file maps to a class in src/Configuration/ by convention (e.g. config/sidebars.php โ†’ Sidebars). No queries, no side effects โ€” just declarative registration.

๐ŸŽฎ Controllers

Controllers live in src/Controllers/ and are view models, not request handlers. Each controller extends AbstractController, gathers data via Timber, builds a context array, and selects a template. They must be side-effect free โ€” no writes, no remote requests, no direct rendering.

Context wiring is declarative: list the template contract in protected array $context_getters = [ 'news', 'events' ] and each key is populated from its get_{key}() getter โ€” no get_context() boilerplate.

๐Ÿ—บ๏ธ Template Routing (No Stub Files)

Opt-in via config/service-providers.php (add TemplateRoutingServiceProvider alongside the defaults) โ€” existing themes built on explicit template stubs are untouched by framework upgrades. Once enabled, requests route to controllers by convention โ€” most themes need no template PHP files at all. WordPress's template hierarchy candidates are recorded per request, kebab-case twins are added for underscored post type/taxonomy names (taxonomy-event_type also matches taxonomy-event-type), and when a request falls through to a parent-theme template the dispatcher resolves a child controller:

The matching {candidate}.twig renders when the child theme has one. config/controllers.php maps any name that defies convention, and a physical template file in the child theme always wins โ€” keep one only for genuine logic (e.g. conditional controller selection).

Page templates are file-less too: config/page-templates.php registers them ('page-templates/contact-page.php' => 'Contact Page' โ€” legacy file-shaped ids keep existing page assignments working), and each resolves to {Slug}Controller or falls back to PageController with {slug}.twig.

Explicit routing still works โ€” and always takes precedence. A template stub in the child theme renders exactly what it says, which is how existing PressGang themes are built and how a theme adopts convention routing incrementally (delete stubs one at a time):

๐ŸŒ Context Managers

Context managers enrich the global Timber::context() with data needed across many templates โ€” menus, site info, theme mods, ACF option pages. They implement ContextManagerInterface, are registered via config/context-managers.php, and must be safe to run on every request (frontend, admin, AJAX, CLI).

๐Ÿงฉ Twig Extensions

All custom Twig functions, filters, and globals are registered through extension managers configured in config/twig-extensions.php. Twig remains a presentation-only layer โ€” no database queries, no mutations, no business logic.

Timber Twig environment options (including compilation cache) are configured through config/timber.php, allowing child themes to opt in per project.

๐Ÿงฑ Blocks & Snippets

Gutenberg blocks are declared in config/blocks.php and live under blocks/<block-name>/ with a block.json and Twig template. Snippets are reusable view partials registered via config/snippets.php โ€” self-contained, explicitly parameterised UI components.

๐Ÿ“‹ Requirements

๐Ÿš€ Getting Started

PressGang is a WordPress parent theme that acts as a framework for your child theme.

Quick Start with PressGang-Child

The fastest way to weigh anchor is with the pressgang-child starter repo:

Then follow the instructions in that repo's README to configure your child theme.

Manual Setup

  1. Clone PressGang into your wp-content/themes/ directory:

  2. Create your own child theme that extends PressGang.

Composer Installation

Require PressGang as a dependency in your child theme:

๐Ÿงช Testing

Tests use PHPUnit + BrainMonkey โ€” no WordPress installation required. See the Testing docs for details on writing new tests and running static analysis.

๐Ÿ“– Documentation

Uncover the buried treasure at: docs.pressgang.dev

๐Ÿ“„ License

PressGang is open-sourced software licensed under the MIT license.


All versions of pressgang with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
timber/timber Version ^2.0
doctrine/inflector Version ^2.0
symfony/string Version 7.0
upstatement/routes Version ^0.9.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pressgang-wp/pressgang contains the following files

Loading the files please wait ...