Download the PHP package boomdraw/laravel-dummy-image without Composer
On this page you can find all versions of the php package boomdraw/laravel-dummy-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boomdraw/laravel-dummy-image
More information about boomdraw/laravel-dummy-image
Files in boomdraw/laravel-dummy-image
Package laravel-dummy-image
Short Description Laravel dummy image generator based on kingkool68/dummyimage
License MIT
Homepage https://github.com/boomdraw/laravel-dummy-image
Informations about the package laravel-dummy-image
Generate dummy images
This package allows you to generate dynamic dummy image in Laravel framework.
It's based on the Russell Heimlich's dummy image generator
Once installed you can do stuff like this:
Installation
Laravel
You can install the package via composer:
You can publish the config file with:
When published, the config/dummyimage.php
config file contains:
Usage
If any of the methods will be used without generate() one, an image will be generated with default params.
You can provide your own parameters for generating image:
- $dimensions - image dimensions.
You can provide as dimensions image size and/or ratio. By default used '800x600'.
Examples:
'800x600' will generate an image with width 800px and height 600px
'800' will generate an image with 800px width and height
'250x1:2' will generate an image with 250px width and 500px height
'1:3x300' will generate an image with width 100px and height 300px - $format - generated image format ('jpg', 'gif', 'png'). Default format is 'png'.
- $bg-color - image background color in hex. Default is white ('ffffff').
- $fg_color - image text color in hex. Default is black ('000000').
- $text variable provides text that will be written on the image. Default is image dimensions.
Resources
License
The MIT License (MIT).
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.