PHPackages                             acidjazz/tryg - 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. [Framework](/categories/framework)
4. /
5. acidjazz/tryg

ActiveLibrary[Framework](/categories/framework)

acidjazz/tryg
=============

Minimal PHP Framework

v0.4.0(9y ago)11712[4 issues](https://github.com/acidjazz/tryg/issues)[3 PRs](https://github.com/acidjazz/tryg/pulls)MITPHPPHP &gt;=5.5

Since May 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/acidjazz/tryg)[ Packagist](https://packagist.org/packages/acidjazz/tryg)[ Docs](https://github.com/acidjazz/tryg)[ RSS](/packages/acidjazz-tryg/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (32)Used By (0)

tryg
====

[](#tryg)

A Minimal PHP/node MVC framework

[![Latest Stable Version](https://camo.githubusercontent.com/9afcb4be837266e6be1afc82fa986252670c4adf23419d1609974cd14b8773cd/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f747279672f762f737461626c65)](https://packagist.org/packages/acidjazz/tryg)[![Total Downloads](https://camo.githubusercontent.com/88d078547bbb5b8b636e2f6e8390cff59c7ead8f38aecd5abed9b2f4a1a2e1ca/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f747279672f646f776e6c6f616473)](https://packagist.org/packages/acidjazz/tryg)[![Latest Unstable Version](https://camo.githubusercontent.com/08cd30e9d4ffa215a007c82305603c65c01b8f3f9ff1e2f82fbebc21c2411394/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f747279672f762f756e737461626c65)](https://packagist.org/packages/acidjazz/tryg)[![License](https://camo.githubusercontent.com/1750f56482de24e776b59e22302a9e6636fdee8da44de8b763866a0c33b9a017/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f747279672f6c6963656e7365)](https://packagist.org/packages/acidjazz/tryg)[![Join the chat at https://gitter.im/acidjazz/tryg](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/acidjazz/tryg?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### features

[](#features)

- Visual debugger [![debugger](media/debugger.png)](media/debugger.png)
- Complete [Pug](https://github.com/pugjs/pug) support
- Complete [Stylus](https://github.com/stylus/stylus) support
- Global configuration, parameters available in PHP, Stylus, and Pug
- API endpoint assistance
- Much more I will list later

### what?

[](#what)

tryg is a minimal PHP framework named after [Trygve Reenskaug](http://en.wikipedia.org/wiki/Trygve_Reenskaug), the inventor of the MVC structure. tryg uses Pug for templating and Stylus for CSS preprocessing, their native versions via sockets.

### installation

[](#installation)

1. Install [Composer](https://getcomposer.org/)
2. Install the specified [Packagist](https://packagist.org/packages/acidjazz/tryg) *acidjazz/tryg*

```
php ~/composer.phar require acidjazz/tryg
```

3. Copy the bundled setup template

```
cp -rp vendor/acidjazz/tryg/site .
```

4. Copy the provided package.json to install the required node modules, then use *npm* to install them

```
cp -rp vendor/acidjazz/tryg/package.json .
npm install
```

5. Point your web server to the site/pub/ folder you've copied as the root, you're done!

### Nginx setup

[](#nginx-setup)

Replace `/var/www/tryg/site/pub` with the location of your setup template

```
server {

	listen 80;
	root /var/www/tryg/site/pub;
	index index.php;
	server_name tryg;

	location / {
	if (!-e $request_filename) {
		rewrite ^(.*)$ /index.php;
	}

}

	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;

		# dev env settings
		fastcgi_param PHP_VALUE "short_open_tag=on \n display_errors=off \n error_reporting=E_ALL";

		# prod env settings
		# fastcgi_param PHP_VALUE "short_open_tag=on \n display_errors=off \n error_reporting=E_ALL";
	}

}
```

### Apache setup

[](#apache-setup)

Create a .htaccess in your setup template root folder and make sure mod\_rewrite is activated

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
```

### dev notes

[](#dev-notes)

refresh our test setup using tryg as a vendor

```
sudo pkill node;php ~/composer.phar update;rm -rf site/pub/; cp -rp vendor/acidjazz/tryg/site/ site
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.5% of commits — single point of failure

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 ~14 days

Recently: every ~0 days

Total

31

Last Release

3637d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4

v0.3.8PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/533437b7015d87ef685c7fd29533d27b0ba063e3418543b72c7b480bd2966bf5?d=identicon)[acidjazz](/maintainers/acidjazz)

---

Top Contributors

[![acidjazz](https://avatars.githubusercontent.com/u/967369?v=4)](https://github.com/acidjazz "acidjazz (65 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

phpframeworkminimal

### Embed Badge

![Health badge](/badges/acidjazz-tryg/health.svg)

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

PHPackages © 2026

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