• Stars
    star
    3
  • Rank 3,963,521 (Top 79 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Paquete de uso personal con cosas que uso día a día...

Utils

Latest Version on Packagist GitHub Tests Action Status Total Downloads GitHub forks GitHub license

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.


how to install

composer require abr4xas/utils

Then:

$ 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 protected]', ['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.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

More Repositories

1

instapago

Plugin instapago para woocommerce.
PHP
18
star
2

php-instapago

Librería Instapago para PHP
PHP
17
star
3

node-instapago

Librería Instapago para Node.js
JavaScript
13
star
4

bancos-json

Código y Bancos correspondientes de Venezuela
11
star
5

location

PHP
5
star
6

post

los post de mi blog .md
4
star
7

vagrant-config

My vagrant config
PHP
4
star
8

laravel-plans

Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.
PHP
4
star
9

uruguay-noma

Comando para crear una tabla con los datos de departamentos y localidades de #Uruguay
PHP
3
star
10

gmaps-input-backpack

Custom Google Maps Input for Laravel Backpack
Blade
2
star
11

blog.abr4xas.org

Mi blog, con laravel
HTML
2
star
12

simple-blog

PHP
2
star
13

pblog

My pelican blog config...
Makefile
2
star
14

enlamano

Paquete para usar el webservice de la financiera "En la mano"
PHP
1
star
15

publish-to-dev-to

PHP
1
star
16

convert

:D
PHP
1
star
17

workbench

Script para preparar el entorno para compilar una ROM para Firefox OS [DEBIAN]
Shell
1
star
18

flexgen

flexgen - A Front End Post (free) HTML5, responsive template
CSS
1
star
19

aprende

PHP
1
star
20

chatter

A simple forum package for your laravel app
PHP
1
star
21

handletranslations

PHP
1
star
22

oauth2-twitch

Twitch Helix Provider for OAuth 2.0 Client
PHP
1
star
23

react-native-crea-aplicaciones-para-android-y-ios-con-react

JavaScript
1
star
24

reportpayment

Only for Direct Bank Transfer, or Bank Account Clearing System (BACS) (Available only for Venezuela)
PHP
1
star
25

dotfiles

Mis dotfiles
Shell
1
star
26

bofh-excuses

BOFH excuses, another foolish wp plugin.
PHP
1
star
27

mvd-omnibus

Pequeña librería para consultar las rutas y los horarios de llegada del bondi
PHP
1
star
28

GoogleAnalytics

Composer package for Laravel
HTML
1
star
29

ReFu

Regulatory functions, an wordpess plug-in
PHP
1
star
30

abr4xas

1
star
31

MorrisJS-Test

Ejemplo de uso de Morris JS con php para crear gráficos.
PHP
1
star
32

memeticones

PHP
1
star