Download the PHP package systemsdk/docker-nginx-php-symfony without Composer

On this page you can find all versions of the php package systemsdk/docker-nginx-php-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package docker-nginx-php-symfony

PHP symfony environment

Docker environment required to run Symfony (based on official php and mysql docker hub repositories).

Actions Status CircleCI Coverage Status Latest Stable Version

Source code

Requirements

Note: OS recommendation - Linux Ubuntu based.

Components

  1. Nginx 1.25
  2. PHP 8.3 fpm
  3. MySQL 8
  4. Symfony 6
  5. RabbitMQ 3
  6. Mailpit (only for debug emails on dev environment)

Setting up Docker and docker-compose

1.For installing Docker please follow steps mentioned on page install on Ubuntu linux or install on Mac/Windows.

2.For installing docker-compose as Linux Standalone binary please follow steps on the page install compose if you are using Linux OS.

Note 1: Please run next cmd after above step 2 if you are using Linux OS: sudo usermod -aG docker $USER

Note 2: If you are using Docker Desktop for MacOS 12.2 or later - please enable virtiofs for performance (enabled by default since Docker Desktop v4.22).

Setting up DEV environment

1.You can clone this repository from GitHub or install via composer.

If you have installed composer and want to install environment via composer you can use next cmd command:

2.Set another APP_SECRET for application in .env.prod and .env.staging files.

Note 1: You can get unique secret key for example here.

Note 2: Do not use .env.local.php on dev and test environment (delete it if exist).

Note 3: If you want to change default web port/xdebug configuration you can create .env.local file and set some params (see .env file).

Note 4: Delete var/mysql-data folder if it exists.

3.Add domain to local 'hosts' file:

4.Configure /docker/dev/xdebug-main.ini (Linux/Windows) or /docker/dev/xdebug-osx.ini (MacOS) (optional):

Install locally in Firefox extension "Xdebug helper" and set in settings IDE KEY: PHPSTORM

5.Build, start and install the docker images from your terminal:

6.Make sure that you have installed migrations / messenger transports:

7.In order to use this application, please open in your browser next urls:

Setting up STAGING environment locally

1.You can clone this repository from GitHub or install via composer.

Note: Delete var/mysql-data folder if it is exist.

If you have installed composer and want to install environment via composer you can use next cmd command:

2.Build, start and install the docker images from your terminal:

3.Make sure that you have installed migrations / messenger transports:

Setting up PROD environment locally

1.You can clone this repository from GitHub or install via composer.

If you have installed composer and want to install environment via composer you can use next cmd command:

2.Edit docker-compose-prod.yml and set necessary user/password for MySQL and RabbitMQ.

Note: Delete var/mysql-data folder if it is exist.

3.Edit env.prod and set necessary user/password for MySQL and RabbitMQ.

4.Build, start and install the docker images from your terminal:

5.Make sure that you have installed migrations / messenger transports:

Getting shell to container

After application will start (make start) and in order to get shell access inside symfony container you can run following command:

Note 1: Please use next make commands in order to enter in other containers: make ssh-nginx, make ssh-supervisord, make ssh-mysql, make ssh-rabbitmq.

Note 2: Please use exit command in order to return from container's shell to local shell.

Building containers

In case you edited Dockerfile or other environment configuration you'll need to build containers again using next commands:

Note: Please use environment-specific commands if you need to build test/staging/prod environment, more details can be found using help make help.

Start and stop environment containers

Please use next make commands in order to start and stop environment:

Note 1: For staging environment need to be used next make commands: make start-staging, make stop-staging.

Note 2: For prod environment need to be used next make commands: make start-prod, make stop-prod.

Stop and remove environment containers, networks

Please use next make commands in order to stop and remove environment containers, networks:

Note: Please use environment-specific commands if you need to stop and remove test/staging/prod environment, more details can be found using help make help.

Additional main command available

Notes: Please see more commands in Makefile

Architecture & packages

Guidelines

Working on your project

  1. For new feature development, fork develop branch into a new branch with one of the two patterns:
    • feature/{ticketNo}
  2. Commit often, and write descriptive commit messages, so its easier to follow steps taken when reviewing.
  3. Push this branch to the repo and create pull request into develop to get feedback, with the format feature/{ticketNo} - "Short descriptive title of Jira task".
  4. Iterate as needed.
  5. Make sure that "All checks have passed" on CircleCI(or another one in case you are not using CircleCI) and status is green.
  6. When PR is approved, it will be squashed & merged, into develop and later merged into release/{No} for deployment.

Note: You can find git flow detail example here.

License

The MIT License (MIT)


All versions of docker-nginx-php-symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3.0
ext-amqp Version *
ext-ctype Version *
ext-iconv Version *
ext-json Version *
ext-mbstring Version *
ext-pdo Version *
ext-pdo_mysql Version *
doctrine/annotations Version ^2.0
doctrine/doctrine-bundle Version ^2.11
doctrine/doctrine-migrations-bundle Version ^3.3
doctrine/orm Version ^2.19
phpdocumentor/reflection-docblock Version ^5.3
dukecity/command-scheduler-bundle Version ^5.0
symfony/asset Version 6.4.*
symfony/config Version 6.4.*
symfony/console Version 6.4.*
symfony/dotenv Version 6.4.*
symfony/expression-language Version 6.4.*
symfony/flex Version ^2.4
symfony/form Version 6.4.*
symfony/framework-bundle Version 6.4.*
symfony/http-client Version 6.4.*
symfony/intl Version 6.4.*
symfony/mailer Version 6.4.*
symfony/messenger Version 6.4.*
symfony/amqp-messenger Version 6.4.*
symfony/doctrine-messenger Version 6.4.*
symfony/mime Version 6.4.*
symfony/monolog-bundle Version ^3.10
symfony/notifier Version 6.4.*
symfony/process Version 6.4.*
symfony/property-access Version 6.4.*
symfony/property-info Version 6.4.*
symfony/proxy-manager-bridge Version 6.4.*
symfony/runtime Version 6.4.*
symfony/routing Version 6.4.*
symfony/security-bundle Version 6.4.*
symfony/serializer Version 6.4.*
symfony/string Version 6.4.*
symfony/translation Version 6.4.*
symfony/twig-bundle Version 6.4.*
symfony/validator Version 6.4.*
symfony/web-link Version 6.4.*
symfony/yaml Version 6.4.*
twig/extra-bundle Version ^2.12|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package systemsdk/docker-nginx-php-symfony contains the following files

Loading the files please wait ....