Download the PHP package abdullah-karam/laravel-svg without Composer
On this page you can find all versions of the php package abdullah-karam/laravel-svg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdullah-karam/laravel-svg
More information about abdullah-karam/laravel-svg
Files in abdullah-karam/laravel-svg
Package laravel-svg
Short Description this package is about generating svg according to any string containing two words with some pretty options
License MIT
Informations about the package laravel-svg
Laravel SVG
A Laravel package for generating SVG images from user full names or initials with some pretty cool customization options.
Requirements
- This package requires PHP 8.0 or higher.
Installation
You can install the package via Composer by running the following command:
Usage
example (1)
To generate an SVG image from a user's full name, you can use the svgFor()
method on the LaravelSvg
facade.
The svgFor()
method accepts a single parameter, which is the user's full name. Here's an example of how you might use
the svgFor()
method:
This will generate an SVG image with the user's initials in the center.
example (2)
You can also generate an SVG image from a user's initials with logo text by using the svgFor()
method on the
LaravelSvg
facade. The svgFor()
method accepts a single parameter, which is the user's initials and chain with method logoText()
. Here's an example of how you might use
This will generate an SVG image with the user's initials in the center and logo text.
with default logo text. if you want to change logo text you can use logoText()
method with parameter.
like this logoText('logo')
or define it once in config/laravel-svg.php
file.
Configuration
You can publish the configuration file using this command:
This is the contents of the published config file:
you can change all configuration options as you want.
License
This package is open-source software licensed under the MIT license (MIT). Please see License File for more information.
Contact
If you have any questions or feedback, feel free to contact me via e-mail at [email protected]