2017 © Pedro Peláez
 

library tryg

Minimal PHP Framework

image

acidjazz/tryg

Minimal PHP Framework

  • Thursday, November 16, 2017
  • by acidjazz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 7 Open issues
  • 32 Versions
  • 0 % Grown

The README.md

tryg

A Minimal PHP/node MVC framework, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Join the chat at https://gitter.im/acidjazz/tryg, (*2)

features

  • Visual debugger debugger
  • Complete Pug support
  • Complete Stylus support
  • Global configuration, parameters available in PHP, Stylus, and Pug
  • API endpoint assistance
  • Much more I will list later

what?

tryg is a minimal PHP framework named after Trygve Reenskaug, the inventor of the MVC structure. tryg uses Pug for templating and Stylus for CSS preprocessing, their native versions via sockets., (*3)

installation

  1. Install Composer
  2. Install the specified Packagist acidjazz/tryg
php ~/composer.phar require acidjazz/tryg
  1. Copy the bundled setup template
cp -rp vendor/acidjazz/tryg/site .
  1. 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
  1. Point your web server to the site/pub/ folder you've copied as the root, you're done!

Nginx setup

Replace /var/www/tryg/site/pub with the location of your setup template, (*4)

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

Create a .htaccess in your setup template root folder and make sure mod_rewrite is activated, (*5)

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

dev notes

refresh our test setup using tryg as a vendor, (*6)

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

The Versions

16/11 2017

dev-master

9999999-dev https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

18/07 2016

v0.4.0

0.4.0.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

17/07 2016

v0.3.98

0.3.98.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

17/07 2016

v0.3.97

0.3.97.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

17/07 2016

v0.3.95

0.3.95.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

17/07 2016

v0.3.9

0.3.9.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

16/07 2016

v0.3.8

0.3.8.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Kevin Olson

framework php minimal

16/07 2016

v0.3.7

0.3.7.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

09/07 2016

v0.3.5

0.3.5.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

09/07 2016

v0.3.6

0.3.6.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

16/03 2016

v0.3.2

0.3.2.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

20/08 2015

v0.3.1

0.3.1.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

15/08 2015

v0.3

0.3.0.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

18/06 2015

v0.2.9

0.2.9.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

18/06 2015

v0.2.8

0.2.8.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

18/06 2015

v0.2.6

0.2.6.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

18/06 2015

v0.2.7

0.2.7.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

18/06 2015

v0.2.5

0.2.5.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

04/06 2015

v0.2.0

0.2.0.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

01/06 2015

v0.1.9.6

0.1.9.6 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.9.5

0.1.9.5 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.8b

0.1.8.0-beta https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.9

0.1.9.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.8

0.1.8.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.7

0.1.7.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

30/05 2015

v0.1.6

0.1.6.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

26/05 2015

v0.1.5

0.1.5.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

26/05 2015

v0.1.4

0.1.4.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

22/05 2015

v0.1.3

0.1.3.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

19/05 2015

v0.1.2

0.1.2.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

19/05 2015

v0.1.1

0.1.1.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal

19/05 2015

v0.1.0

0.1.0.0 https://github.com/acidjazz/tryg

Minimal PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Kevin Olson

framework php minimal