<?xml version="1.0" encoding="UTF-8"?>
<project name="Culturefeed" default="test">
    <fileset id="php" dir=".">
        <include name="**/*.php"/>
        <exclude name="vendor/"/>
    </fileset>

    <target name="test">
        <phplint>
            <fileset refid="php"/>
        </phplint>
        <phpcodesniffer
                standard="phpcs-ruleset.xml"
                format="full"
                allowedFileExtensions="php"
                haltonerror="true">
            <fileset refid="php"/>
        </phpcodesniffer>
    </target>

    <target name="docs">
        <exec passthru="true" command="apigen generate --source src --destination docs/api --title='UDB3 PHP library'" />
    </target>
</project>

<?xml version="1.0" encoding="UTF-8"?>
<project name="Culturefeed" default="test">
    <fileset id="php" dir=".">
        <include name="**/*.php"/>
        <exclude name="vendor/"/>
    </fileset>

    <target name="test">
        <exec command="composer validate" passthru="true" />
        <phplint>
            <fileset refid="php"/>
        </phplint>
        <phpcodesniffer
                standard="phpcs-ruleset.xml"
                format="full"
                allowedFileExtensions="php"
                haltonerror="true">
            <fileset refid="php"/>
        </phpcodesniffer>
    </target>

    <target name="docs">
        <exec passthru="true" command="apigen generate --source src --destination docs/api --title='UDB3 PHP library'" />
    </target>
</project>

Add a composer validate to Phing test target
Add a composer validate to Phing test target
