Simple php class to generate a random number for a phing build.
<?xml version="1.0" ?>
<project name="TestingRandomString" default="generateRandomString">
<taskdef name="randomString" classname="src.PlatinumPixs.RandomString.GenerateTask" />
<target name="generateRandomString">
<randomString name="variableName" length="8" stringType="uppercase_numeric" />
</target>
</project>| name | The variable name that gets assigned for future usage | Required | No Default Value | |
| length | The length of the string | Optional | 16 | |
| stringType | The characters inside the string | Optional | lowercase_uppercase_numeric | - lowercase_upppercase - lowercase - uppercase - lowercase_uppercase_numeric - lowercase_numeric - uppercase_numeric - numeric |
{
"require": {
"platinumpixs/phing-random-string": "dev-master"
}
}If installed via composer the name for the taskdef will be.
<taskdef name="randomString"
classname="vendor.platinumpixs.phing-random-string.src.PlatinumPixs.RandomString.GenerateTask" />