PHP Package: lasserafn/php-initials

PHP library for generating initials from a name or string efficiently for user avatars.

Current Version: 3.1
Last Updated: 2020-12-24
PHP Requirement: ^5.6|^7.0|^7.1|^8.0
Dependencies:
phpunit/phpunit
php-fig/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP-initials library provides a convenient way to generate initials for user avatars or profile pictures. It is lightweight and easy to integrate into web applications, ensuring quick and efficient generation of initials based on user names or strings. With customizable options and support for various output formats, PHP-initials is a versatile solution for enhancing user experience and personalization on websites.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.1

Download Download v3.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/lasserafn/php-initials/3.1/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';

use LasseRafn\PHPInitials\PHPInitials;

$obj = new PHPInitials();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.