-
Add the library to your project (e.g. via Composer)
"repositories": [ { "type": "vcs", "url": "https://github.com/p7s1digital/psd-phant-commons" } ], "require": { "psd/phant-commons": "dev-master" }
-
Add a
build.xml
file to your project root with the following content<?xml version="1.0" encoding="UTF-8"?> <project name="your-project" basedir="."> <!-- once defined properties are not overridden, so the order is essential --> <property file="${basedir}/setup/default.properties" /> <target name="install"> <exec executable="bash"> <arg value="-c"/> <arg value="curl -s https://getcomposer.org/installer | php"/> </exec> <exec executable="php" failonerror="true"> <arg value="composer.phar" /> <arg value="install" /> <arg value="--no-interaction" /> </exec> </target> <!-- include common build targets for automated project building --> <import file="${project.dir.root}/vendor/psd/phant-commons/build.xml" optional="true" /> </project>
-
Add a properties file to your project based on the one under config/default.properties in the folder
setup/config/
-
Add a configuration files for PHPMD based on the one under config/phpmd.xml in the folder
setup/phpmd.xml
-
Add a configuration files for PHP_CodeSniffer based on the one under config/phpcs.xml in the folder
setup/phpcs.xml
-
Run the command
ant install
in your project root -
Run the command
ant build
in your project root
-
Notifications
You must be signed in to change notification settings - Fork 0
p7s1digital/psd-phant-commons
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Ant build essentials for PHP applications (symfony 2.x for now).
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published