2017 © Pedro Peláez
 

application base-application

Caffeina Core - Application Skeleton

image

caffeina-core/base-application

Caffeina Core - Application Skeleton

  • Tuesday, May 24, 2016
  • by lastguest
  • Repository
  • 2 Watchers
  • 4 Stars
  • 72 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Core - Application starter

Web application vanilla template., (*1)

Installation

Deploy, (*2)

Create a new copy of this project via composer, (*3)

$ composer create-project caffeina-core/base-application ./my-awesome-new-app
$ cd my-awesome-new-app
$ composer dump-autoload -o

Done., (*4)

Docker

A complete PHP+NginX server is ready from, (*5)

docker pull caffeina/core-app

Front Controller

Like all URL-routed web app, you need to pass every request to the front controller public/index.php., (*6)

NginX + PHP-FPM

Change PATH_TO_YOUR_APP_DIR to the absolute path of your project directory., (*7)

server {
        listen 80 default_server;

        root PATH_TO_YOUR_APP_DIR/public/;
        index index.php index.html index.htm;

        location / {
             try_files $uri /index.php$is_args$args;
        }

        # pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
        location ~ \.php$ {
                try_files $uri /index.php =404;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }
}

Apache2

Assert that the document root of the virtualhost is pointing to PATH_TO_YOUR_APP_DIR/public/, (*8)

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</IfModule>

The Versions

24/05 2016

dev-master

9999999-dev http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

18/04 2016

1.0.6

1.0.6.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

23/09 2015

1.0.5

1.0.5.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

04/06 2015

1.0.3

1.0.3.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

08/01 2015

1.0.2

1.0.2.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

19/11 2014

dev-new_html

dev-new_html http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

18/11 2014

1.0.1

1.0.1.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core

18/11 2014

1.0.0

1.0.0.0 http://labs.caffeina.co/tech/core

Caffeina Core - Application Skeleton

  Sources   Download

MIT

The Requires

 

skeleton app core