| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 136 | All time:  9,277 This week: 57  | ||||
| Version | License | PHP version | Categories | |||
| abr4xas-utils 1.0.0 | MIT/X Consortium ... | 5.6 | HTML, PHP 5, Debug, Libraries, Finances, S... | 
| Description | Author | ||||||||
| This package provides General purpose utility classes. It provides provides class for: | 
 | 
<img align="left" width="180" src="https://blog.abr4xas.org/icons/apple-icon-180x180.png">
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.
Add this to your composer.json
"require": {
    "abr4xas/utils": "dev-master"
}
Then:
$ 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;
<?php
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 protected]', ['s'=> 80, 'd'=>'mm', 'secure' => true]);
use Abr4xas\Utils\UploadsIm;
UploadsIm::uploadImages('image.jpg', $fileType); // default `$fileType` image/jpeg
use Abr4xas\Utils\TimeFormat;
TimeFormat::timeAgo('2017-07-11'); 
use Abr4xas\Utils\OpenWeatherMap;
OpenWeatherMap::openWeatherMap('city','api key');
use Abr4xas\Utils\PrettyPrintArray;
PrettyPrintArray::prettyPrintArray($var);
use Abr4xas\Utils\SuggestKeyword;
$keywords = SuggestKeyword::SuggestKeyword('php');
PrettyPrintArray::prettyPrintArray($keywords);
// 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('https://blog.abr4xas.org/','apiKey');
// Output: https://goo.gl/83ymQE
|  Files (12) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (10 files) | ||||
|    composer.json | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (12) | / | src | 
| File | Role | Description | 
|---|---|---|
|  BofhExcuses.php | Class | Class source | 
|  GoogleShortUrl.php | Class | Class source | 
|  Gravatar.php | Class | Class source | 
|  Hash.php | Class | Class source | 
|  OpenWeatherMap.php | Class | Class source | 
|  PrettyPrintArray.php | Class | Class source | 
|  SeoUrl.php | Class | Class source | 
|  SuggestKeyword.php | Class | Class source | 
|  TimeFormat.php | Class | Class source | 
|  UploadsIm.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.