PHPackages                             abdullah-karam/laravel-svg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. abdullah-karam/laravel-svg

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

abdullah-karam/laravel-svg
==========================

this package is about generating svg according to any string containing two words with some pretty options

v1.2.2(2y ago)466MITPHPPHP ^8.0

Since Jul 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/AbdullahKaram-Dev/laravelSvg)[ Packagist](https://packagist.org/packages/abdullah-karam/laravel-svg)[ RSS](/packages/abdullah-karam-laravel-svg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (23)Used By (0)

[![](https://camo.githubusercontent.com/d9dc9b8dc1b8ff362d1ad55d2d8ae18b09dcd1691e124ad71deaa5d2376c2595/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)](https://camo.githubusercontent.com/d9dc9b8dc1b8ff362d1ad55d2d8ae18b09dcd1691e124ad71deaa5d2376c2595/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)[![](https://camo.githubusercontent.com/cf7f1d7acf152e75b9148145277ddc73d901fb9ceb3ae1c172ce02d546dc3e8d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)](https://camo.githubusercontent.com/cf7f1d7acf152e75b9148145277ddc73d901fb9ceb3ae1c172ce02d546dc3e8d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)[![](https://camo.githubusercontent.com/7eea910f6b3abc08f821cd48ad811d88c17b1aeb0f8f3a638447094adf1c208c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)](https://camo.githubusercontent.com/7eea910f6b3abc08f821cd48ad811d88c17b1aeb0f8f3a638447094adf1c208c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)[![](https://camo.githubusercontent.com/55f259784bddc8e8a1e1a1ecb69a855334c2f412a9e28c1f5394d8cf821b7f51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)](https://camo.githubusercontent.com/55f259784bddc8e8a1e1a1ecb69a855334c2f412a9e28c1f5394d8cf821b7f51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f416264756c6c61684b6172616d2d4465762f6c61726176656c537667)[![Total Downloads](https://camo.githubusercontent.com/2911941d333e72088a037b5ef9bc104537e1c3a97e10cc374f06849fff224f75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616264756c6c61682d6b6172616d2f6c61726176656c2d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abdullah-karam/laravel-svg)[![Latest Version on Packagist](https://camo.githubusercontent.com/d580284a0357676aa6ea541ae51a348e848cd9b456529962b10f87e8254f6bf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616264756c6c61682d6b6172616d2f6c61726176656c2d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abdullah-karam/laravel-svg)

Laravel SVG
===========

[](#laravel-svg)

A Laravel package for generating SVG images from user full names or initials with some pretty cool customization options.

Requirements
------------

[](#requirements)

- This package requires PHP 8.0 or higher.

Installation
------------

[](#installation)

You can install the package via Composer by running the following command:

```
composer require abdullah-karam/laravel-svg

```

Usage
-----

[](#usage)

example (1)
===========

[](#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:

```
