2017 © Pedro Peláez
 

project installer

A tool to create Symfony projects using Majora skeletons

image

majora/installer

A tool to create Symfony projects using Majora skeletons

  • Monday, August 1, 2016
  • by QuentinCerny
  • Repository
  • 35 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

MajoraInstaller

SensioLabsInsight Scrutinizer Code Quality Build Status Code Coverage Total Downloads Latest Stable Version License, (*1)

A tool to create Symfony projects using Majora skeletons, (*2)

Install the installer

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

Download the binary

You will download a binary ready to use in your system., (*4)

Linux / Mac OS X

$ sudo curl -LsS https://github.com/LinkValue/MajoraInstaller/releases/download/2.1.0/majora.phar -o /usr/local/bin/majora
$ sudo chmod a+x /usr/local/bin/majora

Windows

c:\> php -r "file_put_contents('majora', file_get_contents('https://github.com/LinkValue/MajoraInstaller/releases/download/2.1.0/majora.phar'));"

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

c:\> php majora

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

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

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

Building from source

You will build the binary from the source code to use in your system after cloning the repository., (*8)

1. Install the dependencies

The project use Composer as package manager., (*9)

Execute the following command to download Composer binary:, (*10)

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Then, execute the following command to install the packages (dev required):, (*11)

$ php composer.phar install -o

2. Build the binary

The project use Box as PHAR builder., (*12)

You must enable PHAR in your php.ini first:, (*13)

phar.readonly = Off

Execute the following command to download the Box binary, (*14)

$ curl -LSs https://box-project.github.io/box2/installer.php | php

Then, execute the following command ton build the application:, (*15)

$ php box.phar build

3. Install in your system

To have the majora command, execute the following command:, (*16)

# cp build/majora.phar /usr/local/bin/majora

Using the installer

1. Start a new project with the latest stable Majora Standard Edition version

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

# Linux, Mac OS X
$ majora new my_project

# Windows
c:\> php majora new my_project

2. Start a new project based on a specific Majora Standard Edition branch

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:, (*18)

# Linux, Mac OS X
$ majora new my_project 2.8

# Windows
c:\> php majora new my_project 2.8

3. Start a new project based on a specific Majora Standard Edition version

Execute the new command and provide the name of your project as the first argument and the exact Majora Standard Edition version as the second argument:, (*19)

# Linux, Mac OS X
$ majora new my_project 2.8.1

# Windows
c:\> php majora new my_project 2.8.1

References

The Versions

01/08 2016
01/08 2016

2.1.0.x-dev

2.1.0.9999999-dev

A tool to create Symfony projects using Majora skeletons

  Sources   Download

MIT

The Requires

 

The Development Requires

01/07 2016
22/04 2016

1.0.1

1.0.1.0

initialize an empty Symfony2 project along with an operational Vagrant virtual machine, proper AnsibleGalaxy roles and Majora skeletons.

  Sources   Download

MIT

The Requires

 

symfony2 initialize

22/04 2016

v1.0.0

1.0.0.0

initialize an empty Symfony2 project along with an operational Vagrant virtual machine, proper AnsibleGalaxy roles and Majora skeletons.

  Sources   Download

MIT

The Requires

 

symfony2 initialize