platinumpixs / phing-random-string
Provides A Task To Generate A Random String For Phing
Installs: 10 902
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires (Dev)
- phing/phing: dev-master
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-03-01 16:06:39 UTC
README
Simple php class to generate a random number for a phing build.
Basic Usage
<?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>
Options
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 |
Installing via Composer
{ "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" />