PHPackages                             jamosaur/avtr-io - 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. [API Development](/categories/api)
4. /
5. jamosaur/avtr-io

ActiveLibrary[API Development](/categories/api)

jamosaur/avtr-io
================

API Wrapper for avtr.io

v1.0.0(9y ago)214MITPHPPHP ~7.0

Since Mar 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jamosaur/avtr-io)[ Packagist](https://packagist.org/packages/jamosaur/avtr-io)[ Docs](https://github.com/jamosaur/avtr-io)[ RSS](/packages/jamosaur-avtr-io/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

avtr-io
=======

[](#avtr-io)

[![Latest Version on Packagist](https://camo.githubusercontent.com/503f80134223c6ed9ff7a3c8cc686b48f04c219d804cde85e96d11c02d6fb982/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4a616d6f736175722f617674722d696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Jamosaur/avtr-io)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/93644f5bcc6cbc3603ca2ad20c4c7e19728c9afa9eb257509347746c78e1e9c6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a616d6f736175722f617674722d696f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jamosaur/avtr-io)[![Coverage Status](https://camo.githubusercontent.com/852bff6ed698dea86eb98cde82296bf30e7de45461104b30acdf7ea5ce1657f3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4a616d6f736175722f617674722d696f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Jamosaur/avtr-io/code-structure)[![Quality Score](https://camo.githubusercontent.com/041b6b9f4f3c51e3ac22977ec06ce1058d256fc767cd5ec96b59a1ae795b812c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a616d6f736175722f617674722d696f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Jamosaur/avtr-io)[![Total Downloads](https://camo.githubusercontent.com/b7ad0615e039be4b0d1f2c55430a0c495c33648fd71b68449082403905ffa58a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a616d6f736175722f617674722d696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Jamosaur/avtr-io)

API Wrapper for avtr.io

Install
-------

[](#install)

Via Composer

```
$ composer require jamosaur/avtr-io
```

Usage
-----

[](#usage)

```
require Jamosaur\Avtr;
$avtr = new Avtr('James Wallen-Jones');

echo '';
```

Available Options
-----------------

[](#available-options)

```
// Construct with email.
$avtr = new Avtr('j.wallen.jones@googlemail.com');

// Construct with name.
$avtr = new Avtr('James Wallen-Jones');

// Construct with initials.
$avtr = new Avtr('JW');

// Image Format. (png, jpg, gif)
$avtr->format(string);

// Setting a first name.
$avtr->firstName(string);

// Setting a last name.
$avtr->lastName(string);

// Setting the letter count. (1, 2)
// Anything below 1 will default to 1.
// Anything above 2 will default to 2.
$avtr->letterCount(int);

// Setting the background colour.
// Values below 0 will default to 0.
// Values above 255 will default to 255.
// Alpha value is 0.0 - 1.0
$avtr->background(r, g, b, a);

// Setting the image size.
// Values below 0 will default to 100
$avtr->size(500);

// Setting rounded corners.
$avtr->roundedCorners(bool);

// Setting Shape. (square, circle)
$avtr->shape(string);

// Setting theme. (material, flat)
$avtr->theme(string);

// Setting text Case. (lower, upper, title)
$avtr->textCase(string);

// Setting text colour.
// Values below 0 will default to 0.
// Values above 255 will default to 255.
// Alpha value is 0.0 - 1.0
$avtr->color(r, g, b, a);

// Setting font weight. (100-900)
// Values below 100 default to 100
// Values above 900 default to 900
$avtr->fontWeight(100);

// Setting font. (open-sans, source-sans-pro, roboto)
$avtr->font(string);

// Return a URL
$avtr->toUrl();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [James Wallen-Jones](https://github.com/jamosaur)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3327d ago

### Community

---

Top Contributors

[![jamosaur](https://avatars.githubusercontent.com/u/4105611?v=4)](https://github.com/jamosaur "jamosaur (10 commits)")

### Embed Badge

![Health badge](/badges/jamosaur-avtr-io/health.svg)

```
[![Health](https://phpackages.com/badges/jamosaur-avtr-io/health.svg)](https://phpackages.com/packages/jamosaur-avtr-io)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
