theseconddre / pattern-creator
Generates a specific customisable pattern with php GD
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/theseconddre/pattern-creator
This package is not auto-updated.
Last update: 2025-09-30 20:18:11 UTC
README
Generates a specific, customisable & graphic pattern with php GD.
How to install my package? :-)
Very easy: Just add the following line to your require block in composer.json
"require": {
"theseconddre/pattern-creator": "dev-master"
}
How to use my class?
Then if you want to generate a blue pattern made of squares in your browser, just type these lines (already coded in PatternCreator/examples/index.php)
<?php // Example 1 : display pattern in browser // See more examples in examples/index.php $pattern = new TheSecondDre\PatternCreator([ 'width' => 1000, 'height' => 1000, 'color' => '#0000ff', 'pattern' => 'square', ]); $img = $pattern->createPattern('browser'); die();
Of course you can add your own pattern file in /src/img_patterns.