Code Monkey home page Code Monkey logo

guid's Introduction

A Simple GUID creator package for PHP.

This package is useful for creating globally unique identifiers (GUID). It's under MIT license so it's free for everyone.

StyleCI Latest Stable Version Total Downloads License

Installation

You can install the package via composer: Composer.

composer require sudiptpa/guid

If you want to use this package with Laravel v4.2 stick with the backward version v0.0.1 in your composer.josn file.

"sudiptpa/guid": "v0.0.1"

Usage

Laravel

To consume the this package from Laravel application, register the package service provider within your config/app.php file.

'providers' => [
    Sujip\Guid\GuidServiceProvider::class,
]

'aliases' => [
   'Guid' => Sujip\Guid\Guid::class,
]

If you are a Laravel v5.5 user, this package has been configured for discovery, Laravel will automatically register its service providers and facades when it is installed, creating a convenient installation experience for you.

Create GUID

echo "GUID: " . Guid::create(); //example output : 2b23924f-0eaa-4133-848e-7ce1edeca8c9

echo "GUID: " . guid(); // example output: 2b23924f-0eaa-4133-848e-7ce1edeca8c9

Outside Laravel

require __DIR__ . '/vendor/autoload.php';

$guid = new \Sujip\Guid\Guid;

echo $guid->create();

Output

//Example: 2b23924f-0eaa-4133-848e-7ce1edeca8c9

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Contributions are welcome and will be fully credited.

Contributions can be made via a Pull Request on Github.

Support

If you are having general issues with the package, feel free to drop me and email [email protected]

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

License

The GUID package is open-sourced software licensed under the MIT license.

guid's People

Contributors

duwaljyoti avatar jewhurst avatar sudiptpa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

guid's Issues

Deprecation Notice:

Deprecation Notice: Class Sujip\Guid\Facades\Guid located in ./vendor/sudiptpa/guid/src/Sujip/Guid/Facades/Guid.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/vagrant/projects/icatched/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Sujip\Guid\Guid located in ./vendor/sudiptpa/guid/src/Sujip/Guid/Guid.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/vagrant/projects/icatched/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Sujip\Guid\GuidServiceProvider located in ./vendor/sudiptpa/guid/src/Sujip/Guid/GuidServiceProvider.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.