PHP Classes

abr4xas utilities: General purpose utility classes

Recommend this page to a friend!
  Info   View files Documentation   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 134 All time: 9,296 This week: 455Up
Version License PHP version Categories
abr4xas-utils 1.0.0MIT/X Consortium ...5.6HTML, PHP 5, Debug, Libraries, Finances, S...


This package provides General purpose utility classes. It provides provides class for:

- Highlight debut output values
- Generate SEO friendly URLs from strings
- Get URLs to display Avatar images from Gravatar
- Generate and validate password value hashes
- Display formatted money amounts according to currency

Picture of ángel cruz
  Performance   Level  
Name: ángel cruz <contact>
Classes: 4 packages by
Country: Uruguay Uruguay
Age: 36
All time rank: 39247 in Uruguay Uruguay
Week rank: 337 Up1 in Uruguay Uruguay Up


<img align="left" width="180" src="">


GitHub issues GitHub forks GitHub license Scrutinizer Code Quality Codacy Badge

Un simple composer package que puede servir de utilidad a cualquiera con muchas herramientas que facilitan el desarrollo de proyectos mucho más rápido.

how to install

Add this to your composer.json

"require": {
    "abr4xas/utils": "dev-master"


$ composer update
$ composer dumpautoload -o // optional


use Abr4xas\Utils\Hash;
use Abr4xas\Utils\SeoUrl;
use Abr4xas\Utils\Gravatar;
use Abr4xas\Utils\UploadsIm;
use Abr4xas\Utils\TimeFormat;
use Abr4xas\Utils\GoogleShortUrl;
use Abr4xas\Utils\SuggestKeyword;
use Abr4xas\Utils\OpenWeatherMap;
use Abr4xas\Utils\PrettyPrintArray;

how to use


require 'vendor/autoload.php';

use Abr4xas\Utils\Hash;
// read the docs :smile:

use Abr4xas\Utils\SeoUrl;
SeoUrl::generateSlug('this is an awesome string');

use Abr4xas\Utils\Gravatar;
Gravatar::getAvatarUrl('email@domain.tld', ['s'=> 80, 'd'=>'mm', 'secure' => true]);

use Abr4xas\Utils\UploadsIm;
UploadsIm::uploadImages('image.jpg', $fileType); // default `$fileType` image/jpeg

use Abr4xas\Utils\TimeFormat;

use Abr4xas\Utils\OpenWeatherMap;
OpenWeatherMap::openWeatherMap('city','api key');

use Abr4xas\Utils\PrettyPrintArray;

use Abr4xas\Utils\SuggestKeyword;
$keywords = SuggestKeyword::SuggestKeyword('php');

// Output:
// Array
// (
//     [0] => php
//     [1] => phpmyadmin
//     [2] => php date
//     [3] => phpstorm
//     [4] => php online
//     [5] => php array length
//     [6] => php foreach
//     [7] => phpunit
//     [8] => php array
//     [9] => php try catch
// )

use Abr4xas\Utils\GoogleShortUrl;
$url = GoogleShortUrl::shortUrl('','apiKey');
// Output:

  Files folder image Files  
File Role Description
Files folder imagesrc (10 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file BofhExcuses.php Class Class source
  Plain text file GoogleShortUrl.php Class Class source
  Plain text file Gravatar.php Class Class source
  Plain text file Hash.php Class Class source
  Plain text file OpenWeatherMap.php Class Class source
  Plain text file PrettyPrintArray.php Class Class source
  Plain text file SeoUrl.php Class Class source
  Plain text file SuggestKeyword.php Class Class source
  Plain text file TimeFormat.php Class Class source
  Plain text file UploadsIm.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,296
This week:455Up