• Stars
    star
    116
  • Rank 294,042 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

A fluent PHP random key generator.

Keygen

A fluent PHP random key generator.

Packagist Packagist Packagist

Keygen is a PHP package that generates random character sequences known as keys. The package ships with built-in key generators for four key types namely: numeric, alphanumeric, token and byte. Its implementation effectively combines simplicity and expressiveness.

Installation

With Composer

The Keygen package can be installed easily with [Composer] - require the gladcodes/keygen package from the command line.

$ composer require gladcodes/keygen

Alternatively, you can manually add the Keygen package to the composer.json file of your project and then run composer install from the command line as follows:

{
    "require": {
        "gladcodes/keygen": "~1.1"
    }
}
$ composer install

You can use it in your PHP code like this:

<?php

require __DIR__ . '/vendor/autoload.php';
use Keygen\Keygen;

printf("Your appID is %.0f", Keygen::numeric(12)->generate()); // Your appID is 878234290135

Usage and Documentation

Todos

  • Write tests

License

The Keygen package is covered by the MIT License.

More Repositories

1

build-react-pagination-demo

The source code for demo on how to build custom pagination component in a React application.
JavaScript
61
star
2

advanced-multer-node-sourcecode

Source code for tutorial on advanced photo upload in Node using Multer and Jimp.
JavaScript
24
star
3

web-speech-demo

Learn how to build a simple text-to-speech voice app for the web using the Web Speech API.
JavaScript
23
star
4

react-datepicker-demo

Source code for a simple demo app showing how to build a custom datepicker for React applications.
JavaScript
22
star
5

react-with-bootstrap-demo

Code demos showing different ways of using Bootstrap in a React application.
JavaScript
17
star
6

joi-schema-validation-sourcecode

The source code for tutorial on Node API Schema Validation with Joi.
JavaScript
16
star
7

scotch-scraping-node

Simple app for scraping author profiles and tutorials from Scotch.io - https://scotch.io.
JavaScript
15
star
8

react-toggle-switch-demo

Source code for a simple demo app showing how to build a custom toggle switch for React applications.
JavaScript
14
star
9

scotch-scraping-node-app

Simple app for scraping author profiles from Scotch.io - https://hello-scotch-node.herokuapp.com.
JavaScript
13
star
10

realtime-visualization-react-demo

Source code for a very simple realtime data visualization application based on a poll built with Next.js, Chart.js and Pusher.
JavaScript
12
star
11

password-strength-react-demo

A demo showing how to use the zxcvbn JavaScript library in a React application to create a simple password strength meter.
JavaScript
10
star
12

realtime-geofencing-react-demo

Source code for a very simple realtime location-aware application with geofencing updates built with Next.js, Google Maps API and Pusher.
JavaScript
10
star
13

light-matrix

Lightweight JavaScript library for basic matrix computations.
JavaScript
6
star
14

laravel-with-keygen-demo

A demo showing how to use the PHP Keygen package in a Laravel application.
PHP
6
star
15

password-strength-demo

A demo showing how to use the zxcvbn Javascript library in an AngularJS application to create a simple password strength meter.
HTML
6
star
16

domx

JavaScript
2
star
17

darkmode

Dark mode color scheme detection and preference for web applications.
TypeScript
2
star
18

modern-javascript

Documentation on some modern JavaScript features.
1
star
19

memo-fns

1
star
20

structs

Data structures implementations for JavaScript
TypeScript
1
star
21

data-structures-and-algo

Popular data structures and algorithms implemented in JavaScript.
1
star
22

refetch

A wrapper around the native Fetch API with lots of awesomeness.
JavaScript
1
star
23

worker-app-demo

Source code for a simple Node app with cache and queue services orchestrated with Docker compose.
JavaScript
1
star
24

react-realtime-twitter-style-poll

Source code for a realtime Twitter-style poll application built with Next.js and Pusher.
JavaScript
1
star