Skip to content

This repository is a demo of Explicit Architecture, using the Symfony Demo Application.

License

Notifications You must be signed in to change notification settings

hgraca/explicit-architecture-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Demo Application

The "Symfony Demo Application" is a reference application created to show how to develop Symfony applications following the recommended best practices.

Requirements

Installation

Execute this command to install the project:

$ composer create-project symfony/symfony-demo

Deploy

Usage

There's no need to configure anything to run the application. Just execute this command to run the built-in web server and access the application in your browser at http://localhost:8000:

$ cd symfony-demo/
$ make up

To see all commands available run:

$ cd symfony-demo/
$ make

Alternatively, you can configure a fully-featured web server like Nginx or Apache to run the application.

Tests

Execute this command to run tests:

$ cd symfony-demo/
$ make test

Or this command to run tests and get the coverage:

$ cd symfony-demo/
$ make test_cov

Integration with PHPStorm

Integration with PHPStorm is straight forward.

Configure the servers so we can debug a request made from the browser: PHPStorm servers config

Configure the CLI so we can run the tests: PHPStorm CLI config

Configure the test run itself: PHPStorm tests config