A tool to create Symfony projects using Majora skeletons
This step is only needed for the first time you use the installer.
You will download a binary ready to use in your system.
$ 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
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:
c:\> php majora
If you prefer to create a global majora
command, execute the following:
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.
You will build the binary from the source code to use in your system after cloning the repository.
The project use Composer as package manager.
Execute the following command to download Composer binary:
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):
$ php composer.phar install -o
The project use Box as PHAR builder.
You must enable PHAR in your php.ini
first:
phar.readonly = Off
Execute the following command to download the Box binary
$ curl -LSs https://box-project.github.io/box2/installer.php | php
Then, execute the following command ton build the application:
$ php box.phar build
To have the majora
command, execute the following command:
# cp build/majora.phar /usr/local/bin/majora
Execute the new
command and provide the name of your project as the only
argument:
# Linux, Mac OS X
$ majora new my_project
# Windows
c:\> php majora new my_project
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:
# Linux, Mac OS X
$ majora new my_project 2.8
# Windows
c:\> php majora new my_project 2.8
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:
# Linux, Mac OS X
$ majora new my_project 2.8.1
# Windows
c:\> php majora new my_project 2.8.1