https://github.com/greg-md/php-app
Greg PHP Application is based on Greg PHP Framework and it's components.
https://github.com/greg-md/php-app
app application greg-md greg-php php php-app web-artisans
Last synced: 2 months ago
JSON representation
Greg PHP Application is based on Greg PHP Framework and it's components.
- Host: GitHub
- URL: https://github.com/greg-md/php-app
- Owner: greg-md
- License: mit
- Created: 2016-11-06T11:51:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:20:51.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T10:21:50.025Z (11 months ago)
- Topics: app, application, greg-md, greg-php, php, php-app, web-artisans
- Language: JavaScript
- Homepage:
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greg PHP Application
[](https://styleci.io/repos/72987376)
[](https://travis-ci.org/greg-md/php-app)
[](https://packagist.org/packages/greg-md/php-app)
[](https://packagist.org/packages/greg-md/php-app)
[](https://packagist.org/packages/greg-md/php-app)
[](https://packagist.org/packages/greg-md/php-app)
This Application is based on [Greg PHP Framework](https://github.com/greg-md/php-framework) and it's components.
# Table of Contents
* [Requirements](#requirements)
* [Installation](#installation)
* [Configuration](#configuration)
* [HTTP Routing](#http-routing)
* [Console Commands](#console-commands)
* [Dependency Injection](#dependency-injection)
* [Service Providers](#service-providers)
* [Testing](#testing)
* [Out of the box](#out-of-the-box)
* [Cache](#cache)
* [ORM](#orm)
* [View](#view)
* [Imagix](#imagix)
* [Debug Bar](#debug-bar)
* [License](#license)
* [Huuuge Quote](#huuuge-quote)
# Requirements
* [Docker](https://www.docker.com/)
# Installation
**Composer**
`composer create-project greg-md/php-app`
**Git**
`git clone https://github.com/greg-md/php-app.git`
**Manually**
[Download](https://github.com/greg-md/php-app/archive/master.zip) and unzip it in your preferable directory.
### Run
Open terminal and start docker containers from the project root directory.
`docker-compose up`
Wait until the `app` container is started and open in browser `http://127.0.0.1/`.
> It will take a while for the first time until it will download and build images.
> But next times containers will start faster.
**Optionally**, you can add an alias in `hosts` file `127.0.0.1 app.local` and open in browser `http://app.local/`.

# Configuration
All configuration files are stored in the `config` directory. You can easily access them from application:
```php
$app->config('debug');
```
### Environment variables
Environment variables are stored in `.env` file and could be accessed anywhere in the code, mostly in configuration files:
```php
'debug' => (bool) getenv('DEBUG'),
```
# HTTP Routing
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-router)
# Console Commands
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-framework#running-for-console-requests)
# Dependency Injection
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-dependency-injection)
# Service Providers
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-framework#service-providers)
# Testing
> Sorry, description is still in under construction...
# Out of the box
## Cache
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-cache)
## ORM
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-orm)
## View
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-view)
## Imagix
> Sorry, description is still in under construction...
[Documentation](https://github.com/greg-md/php-imagix)
## Debug Bar
> Sorry, description is still in under construction...
[Documentation](http://phpdebugbar.com/)
# License
MIT © [Grigorii Duca](http://greg.md)
# Huuuge Quote
