Download the PHP package phundament/app without Composer

On this page you can find all versions of the php package phundament/app. 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 app

:rotating_light: THIS PROJECT IS DEPRECATED - Next version phd5 is available


phd4

formerly known as Phundament 4

phd is a dockerized 12factor PHP application template for Yii Framework 2.0.

Requirements

For alternative installation methods, such as composer, see the docs.

Installation

Download or clone the repository and go to the application directory

git clone https://github.com/phundament/app
cd app

Heads up! Phundament features Makefile targets for development and continuous integration, type make help to see all available targets or make all to run installation and setup.

Create environment configuration files

cp .env-dist .env
cp docker-compose.override-dist.yml docker-compose.override.yml

Start the application stack

docker-compose up -d

Run setup commands

docker-compose run php composer install
docker-compose run php setup.sh

After startup is complete, open http://<DOCKER_HOST>:40080 to access the application and login with admin/admin.

Configuration

Environment overrides - docker-compose.override.yml

Environment defaults - docker-compose.yml

You can override any ENV variable in .env within a docker-compose.yml file.

Application defaults - .env

During development, it is recommended to change application configuration in the .env file, since it does not require restarting the containers.

Application

Framework

Database

Application configuration - config/main.php

For details of available application configuration, please refer to the Yii 2.0 Framework Definitive Guide.

Settings

Web UI for application wide key-value store.

Users & permissions

Default users

Default roles

:bulb: To enable public access you need to assign permissions, like app_site, docs_default, to the Public role.

Testing

First, build your application image

docker-compose build 

Set environment variables for test stack

export COMPOSE_PROJECT_NAME=testapp
export BUILD_PREFIX=app

Start test stack and enter tester CLI container

docker-compose -f docker-compose.yml -f build/compose/test.override.yml up -d    
docker-compose -f docker-compose.yml -f build/compose/test.override.yml run tester bash    

Setup application (container bash)

$ setup.sh

Run test suites (container bash)

$ codecept run functional prod
$ codecept run acceptance prod

:information_source: YII_ENV must be set to test when running codeception.

Deployment

Required variables for building & pushing docker images.

Links


Built by *dmstr, Stuttgart :de:


All versions of app with dependencies

PHP Build Version
Package Version
Requires dmstr/yii2-cms-metapackage Version ^5.0.1
vlucas/phpdotenv Version 2.*
yiisoft/yii2 Version ^2.0.7
yiisoft/yii2-codeception Version ^2.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 phundament/app contains the following files

Loading the files please wait ....