2017 © Pedro PelĂĄez
 

library utils

Personal Package

image

abr4xas/utils

Personal Package

  • Monday, February 19, 2018
  • by abr4xas
  • Repository
  • 2 Watchers
  • 2 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

, (*1)

Utils

Latest Version on Packagist GitHub Tests Action Status Total Downloads GitHub forks GitHub license, (*2)

Un simple paquete de php que puede servir de utilidad a cualquiera con muchas herramientas que facilitan el desarrollo de proyectos mucho mĂĄs rĂĄpido., (*3)


how to install

composer require abr4xas/utils

Then:, (*4)

$ composer update
$ composer dumpautoload -o // optional

how to use


<?php require 'vendor/autoload.php'; use Abr4xas\Utils\SeoUrl; use Abr4xas\Utils\Gravatar; use Abr4xas\Utils\TimeFormat; use Abr4xas\Utils\SuggestKeyword; use Abr4xas\Utils\PrettyPrintArray; $slug = SeoUrl::generateSlug('this is an awesome string'); // this-is-an-awesome-string $gravatar = Gravatar::getAvatarUrl('email@domain.tld', ['s' => 80, 'd' => 'mm', 'secure' => true]); // https://secure.gravatar.com/avatar/0b84841f9b6236d312515dc83046078c?s=80&d=mm&r=g $timeAgo = TimeFormat::timeAgo('2020-08-25'); // 21 hours ago PrettyPrintArray::prettyPrintArray($var); $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 // )

random string generator usage

<?php

use Abr4xas\Utils\RandomStringGenerator;

$token = (new RandomStringGenerator)->generate();

custom alphabet

<?php

$customAlphabet = '0123456789ABCDEF';

// you can set the custom alphabet from the constructor
$token = (new RandomStringGenerator($customAlphabet))->generate();

// or you can set a new alphabet whenever needed like this:

$token = (new RandomStringGenerator)->setAlphabet($customAlphabet)->generate();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently., (*5)

Contributing

Please see CONTRIBUTING for details., (*6)

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

19/02 2018

dev-master

9999999-dev

Personal Package

  Sources   Download

MIT

16/02 2018

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Personal Package

  Sources   Download

MIT

21/07 2017

v2.6.1

2.6.1.0

Personal Packages

  Sources   Download

MIT

21/07 2017

v2.6.0

2.6.0.0

Personal Packages

  Sources   Download

MIT

20/06 2017

v2.5.0

2.5.0.0

Paquetes de uso personal

  Sources   Download

MIT

18/06 2017

v2.0.0

2.0.0.0

Paquetes de uso personal

  Sources   Download

MIT

18/06 2017

v1.0.0

1.0.0.0

Paquetes de uso personal

  Sources   Download

MIT