PHPackages                             phpgt/build - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. phpgt/build

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

phpgt/build
===========

Client-side build system for PHP projects.

v1.2.3(2y ago)13.6k↓30%[5 issues](https://github.com/PhpGt/Build/issues)[4 PRs](https://github.com/PhpGt/Build/pulls)3MITPHPPHP &gt;=7.4CI passing

Since Dec 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/PhpGt/Build)[ Packagist](https://packagist.org/packages/phpgt/build)[ GitHub Sponsors](https://github.com/sponsors/PhpGt)[ RSS](/packages/phpgt-build/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (30)Used By (3)

Client-side build system for PHP projects.
==========================================

[](#client-side-build-system-for-php-projects)

This project provides a system for defining and running client-side build processes automatically, using tools already installed by your favourite client-side dependency manager.

---

[ ![Build status](https://camo.githubusercontent.com/d8c0516db8aedb36d1f146ede6e23afcbf9e432a0ffb2e55a86d68e87c7e0586/68747470733a2f2f62616467652e7374617475732e7068702e67742f6275696c642d6275696c642e737667)](https://github.com/PhpGt/Build/actions)[ ![Code quality](https://camo.githubusercontent.com/d74b221bc45e4f5c3357d62742f0abee4f0b12c9048701ef3c348d768d1d33da/68747470733a2f2f62616467652e7374617475732e7068702e67742f6275696c642d7175616c6974792e737667)](https://app.codacy.com/gh/PhpGt/Build)[ ![Code coverage](https://camo.githubusercontent.com/a996be577856d873456ea8942af959b5d34dd72eb9b820a090ee9de4447b0050/68747470733a2f2f62616467652e7374617475732e7068702e67742f6275696c642d636f7665726167652e737667)](https://app.codecov.io/gh/PhpGt/Build)[ ![Current version](https://camo.githubusercontent.com/17871c86dbf153a7f58583f69b5d271b175f5db6b89fa14e111e0894a22f7669/68747470733a2f2f62616467652e7374617475732e7068702e67742f6275696c642d76657273696f6e2e737667)](https://packagist.org/packages/PhpGt/Build)[ ![PHP.G/Build documentation](https://camo.githubusercontent.com/52198ef10ecd15fd5e7557afd49914f645eb081d0cfd92504f4ae4429478970a/68747470733a2f2f62616467652e7374617475732e7068702e67742f6275696c642d646f63732e737667)](http://www.php.gt/Build)Example usage
-------------

[](#example-usage)

An example `build.json` below shows three different usages:

1. `npm` has been used to install babel into the node\_modules directory. The command to run is the `babel` binary within the node\_modules directory. The command will execute whenever a `*.es6` file changes within the script directory.
2. `sass` has been installed to the system. The `sass` command is available on the environment PATH, and the developer has stated that at least version 3.5 is required for the build. The command will execute whenever a `*.scss` file changes within the style directory.
3. A custom PHP script is called whenever any HTML or PHP file is edited in the page directory. This assumes that the command `vendor/bin/sitemap` is installed via a composer package.

`build.json`:

```
{
	"script/**/*.es6": {
		"name": "Babel transpile",
		"command": "./node_modules/.bin/babel",
		"args": "script/main.js -o www/script.js",
		"require": {
			"node": "^8.4",
			"@command": "^6.0"
		}
	},

	"style/**/*.scss": {
		"name": "Sass compilation",
		"command": "sass",
		"args": "style/main.scss www/style.css",
		"require": {
			"@command": ">=3.5"
		}
	},

	"page/**/*.{html|php}": {
		"name": "Sitemap generation",
		"command": "php vendor/bin/sitemap",
		"args": "src/page www/sitemap.xml"
	}
}
```

Not a dependency manager
------------------------

[](#not-a-dependency-manager)

This library assumes the configuration of the system is already configured.

The primary objective is to provide a client-side build system that is automatically configured for PHP projects, leaving the configuration of the system down to the developer's choice of client-side dependency management software.

Features at a glance
--------------------

[](#features-at-a-glance)

- One-off builds
- Background builds (watching the matching files and re-building where necessary)
- Bring your own client-side dependency manager

Proudly sponsored by
====================

[](#proudly-sponsored-by)

[JetBrains Open Source sponsorship program](https://www.jetbrains.com/community/opensource/)

[![JetBrains logo.](https://camo.githubusercontent.com/b5639e7738c6dfae9fe3f3e20175570b7376ce2577a772e09c25c2d4f14bf86e/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a6574627261696e732e737667)](https://www.jetbrains.com/community/opensource/)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~188 days

Recently: every ~171 days

Total

12

Last Release

1014d ago

Major Versions

v0.2.1.x-dev → v1.0.02019-06-19

PHP version history (3 changes)v0.0.4PHP ^7.1

v0.2.1.x-devPHP &gt;=7.2

v1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e42344b91ce4b91ab57875969f67a0a6a48de570a08bc65d673b06b72fd3a3f?d=identicon)[g105b](/maintainers/g105b)

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (24 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (19 commits)")[![g105b](https://avatars.githubusercontent.com/u/358014?v=4)](https://github.com/g105b "g105b (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

build-automationbuild-pipelinesbuild-systembuild-tooles6es7phpgtscss

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpgt-build/health.svg)

```
[![Health](https://phpackages.com/badges/phpgt-build/health.svg)](https://phpackages.com/packages/phpgt-build)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.1k25.4M207](/packages/deployer-deployer)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[felixfbecker/language-server

PHP Implementation of the Visual Studio Code Language Server Protocol

1.2k95.4k](/packages/felixfbecker-language-server)[sarfraznawaz2005/servermonitor

Laravel package to periodically monitor the health of your server and website.

19513.2k1](/packages/sarfraznawaz2005-servermonitor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
