Download the PHP package arrratars/laravel without Composer

On this page you can find all versions of the php package arrratars/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

Arrratars

Laravel/PHP port of avvvatars

Any text in → SVG avatar out. Use anywhere.


This project is literally avvvatars but for Laravel/PHP.

Same algorithm. Same 60 shapes. Same 20 color palettes. Same deterministic output.

All credit for the original design, shapes, and color system goes to:

Original repo: https://github.com/nusu/avvvatars


What it does

Pass any string → get a unique, deterministic SVG avatar.

The output is pure SVG. Not tied to Blade. Not tied to HTML. Use it literally anywhere.


Installation

Service provider is auto-discovered. Optionally publish the config:


Quick Start


All The Ways You Can Use It

1. API Endpoint (return as image)

Now you can do:


2. Save to S3


3. Save to local disk


4. Store in database


5. Use in <img> tag via base64


6. Inline SVG in Blade


7. Blade component


8. Helper functions


9. In JSON API responses


Options

Option Type Default Description
style 'character' | 'shape' 'character' Initials or SVG shape
size int 32 Size in pixels
display_value string null Override the 2-letter text
shadow bool false Drop shadow
border bool false Border ring
border_size int 2 Border width
border_color string '#fff' Border color
radius int size Border radius (circle by default)

Methods

Method Returns Description
svg($value, $options) string Complete SVG markup
render($value, $options) string Alias for svg()
toBase64($value, $options) string Base64 data URI for img src
toDataUri($value, $options) string URL-encoded data URI
toPng($value, $options) string PNG binary (needs Imagick)
saveTo($value, $path, $options) bool Write to file

How the output looks

The svg() method returns a self-contained SVG like this:

No external dependencies. No CSS required. No JavaScript. Works everywhere SVG is supported.


Credits

PHP/Laravel port of avvvatars. All design, shapes, and colors belong to the original avvvatars team.

License

MIT


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arrratars/laravel contains the following files

Loading the files please wait ...