Skip to content

Ant build essentials for PHP applications (symfony 2.x for now).

Notifications You must be signed in to change notification settings

p7s1digital/psd-phant-commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSD PHP Ant Build Commons

Installation

  1. 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"
    }
  2. 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>
  3. Add a properties file to your project based on the one under config/default.properties in the folder setup/config/

  4. Add a configuration files for PHPMD based on the one under config/phpmd.xml in the folder setup/phpmd.xml

  5. Add a configuration files for PHP_CodeSniffer based on the one under config/phpcs.xml in the folder setup/phpcs.xml

  6. Run the command ant install in your project root

  7. Run the command ant build in your project root

About

Ant build essentials for PHP applications (symfony 2.x for now).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published