2017 © Pedro Peláez
 

library bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

image

20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  • Thursday, December 29, 2016
  • by helmuthva
  • Repository
  • 4 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Bricks Installer

Build Status Tested PHP versions Dependency Status Packagist version, (*1)

This is the official installer to start new projects based on the Bricks platform by 20steps., (*2)

Installing the installer

This step is only needed the first time you use the installer:, (*3)

Linux and Mac OS X

$ sudo curl -LsS https://bricks.20steps.de/downloads/installer -o /usr/local/bin/bricks
$ sudo chmod a+x /usr/local/bin/bricks

Windows

c:\> php -r "file_put_contents('bricks', file_get_contents('https://bricks.20steps.de/downloads/installer'));"

Move the downloaded bricks file to your projects directory and execute it as follows:, (*4)

c:\> php bricks

If you prefer to create a global bricks command, execute the following:, (*5)

c:\> (echo @ECHO OFF & echo php "%~dp0bricks" %*) > bricks.bat

Then, move both files (bricks and bricks.bat) to any location included in your execution path. Now you can run the bricks command anywhere on your system., (*6)

Installing without the Installer

If you can't use the Bricks Installer for any reason, you can create Bricks applications with [Composer][2], the dependency manager used by modern PHP applications., (*7)

If you don't have Composer installed in your computer, start by installing Composer globally., (*8)

Then, execute the create-project command to create a new Bricks application based on its latest stable version:, (*9)

composer create-project 20steps/bricks-platform-standard-edition my_project_name

To create a new Bricks application based on the latest non-stable version execute:, (*10)

composer create-project 20steps/bricks-platform-standard-edition my_project_name dev-master

Using the installer

1. Start a new project with the latest stable Bricks version, (*11)

Execute the new command and provide the name of your project as the only argument:, (*12)

# Linux, Mac OS X
$ bricks new my_project

# Windows
c:\> php bricks new my_project

2. Start a new project with the latest Bricks LTS (Long Term Support) version, (*13)

Execute the new command and provide the name of your project as the first argument and lts as the second argument. The installer will automatically select the most recent LTS (Long Term Support) version available:, (*14)

# Linux, Mac OS X
$ bricks new my_project lts

# Windows
c:\> php bricks new my_project lts

3. Start a new project based on a specific Bricks branch, (*15)

Execute the new command and provide the name of your project as the first argument and the branch number as the second argument. The installer will automatically select the most recent version available for the given branch:, (*16)

# Linux, Mac OS X
$ bricks new my_project 2.8

# Windows
c:\> php bricks new my_project 2.8

4. Start a new project based on a specific Bricks version, (*17)

Execute the new command and provide the name of your project as the first argument and the exact Bricks version as the second argument:, (*18)

# Linux, Mac OS X
$ bricks new my_project 2.8.1

# Windows
c:\> php bricks new my_project 2.8.1

5. Install the Bricks demo application, (*19)

The Bricks Demo is a reference application developed using the official Bricks Best Practices:, (*20)

# Linux, Mac OS X
$ bricks demo

# Windows
c:\> php bricks demo

Updating the installer

New versions of the Bricks Installer are released regularly. To update your installer version, execute the following command:, (*21)

# Linux, Mac OS X
$ bricks self-update

# Windows
c:\> php bricks self-update

NOTE, (*22)

If your system requires the use of a proxy server to download contents, the installer tries to guess the best proxy settings from the HTTP_PROXY and http_proxy environment variables. Make sure any of them is set before executing the Bricks Installer., (*23)

Troubleshooting

SSL and certificates issues on Windows systems

If you experience any error related with SSL or security certificates when using the Bricks Installer on Windows systems:, (*24)

1) Check that the OpenSSL extension is enabled in your php.ini configuration:, (*25)

; make sure that the following line is uncommented
extension=php_openssl.dll

2) Check that the path to the file that contains the security certificates exists and is defined in php.ini:, (*26)

openssl.cafile=C:/path/to/cacert.pem

If you can't locate the cacert.pem file anywhere on your system, you can safely download it from the official website of the cURL project: http://curl.haxx.se/ca/cacert.pem, (*27)

Author

  • Helmut Hoffer von Ankershoffen (hhva@20steps.de)

20steps - Digital Full Service Boutique, (*28)

The Versions

29/12 2016

dev-master

9999999-dev https://github.com/20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform

29/12 2016

v3.2.5

3.2.5.0 https://github.com/20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform

29/12 2016

v3.2.4

3.2.4.0 https://github.com/20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform

16/12 2016

v3.2.3

3.2.3.0 https://github.com/20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform

16/12 2016

v3.2.2

3.2.2.0 https://github.com/20steps/bricks-installer

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform

14/12 2016

v3.2.1

3.2.1.0

The official installer to create projects based on the Bricks platform by 20steps.

  Sources   Download

MIT

The Requires

 

The Development Requires

php bricks installer platform