A Simple GUID creator Laravel Package for PHP

Related tags

Laravel php laravel guid
Overview

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.

You might also like...
Laravel SEO - This is a simple and extensible package for improving SEO via meta tags, such as OpenGraph tags.

This is a simple and extensible package for improving SEO via meta tags, such as OpenGraph tags.

A simple API documentation package for Laravel using OpenAPI and Stoplight Elements

Laravel Stoplight Elements Easily publish your API documentation using your OpenAPI document in your Laravel Application. Installation You can install

A simple to use opinionated ERP package to work with Laravel

Laravel ERP A simple to use opinionated ERP package to work with Laravel Installation You can install the package via composer: composer require justs

A simple package to manage the creation of a structure composed of the service and repository layers in a Laravel application
A simple package to manage the creation of a structure composed of the service and repository layers in a Laravel application

Chapolim Este projeto tem como objetivo fornecer alguns comandos adicionais à interface de linha de comando do Laravel, o Artisan, para manipular a es

A simple laravel package to handle multiple key based model route binding

Laravel Model UUID A simple package to handle the multiple key/column based route model binding for laravel package Installation Require the package u

A simple package allowing for consistent API responses throughout your Laravel application
A simple package allowing for consistent API responses throughout your Laravel application

Laravel API Response Helpers A simple package allowing for consistent API responses throughout your Laravel application. Requirements PHP ^7.4 | ^8.0

A simple Laravel package for generating download links with options such as expire time, IP restrictions, etc.

Generate download links in your Laravel applications This package allows you to generate download links for files. Once installed you can do stuff lik

A simple laravel package to enable cascade deleting on polymorphic relations.

Morph Cascade Delete A simple laravel package to enable cascade deleting on polymorphic relations. Installation Install with composer composer requi

A simple laravel package to validate console commands arguments and options.

Command Validator A simple laravel package to validate console commands arguments and options. Installation Require/Install the package using composer

Comments
  • Deprecation Notice:

    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

    opened by tfMovamo 2
Releases(v1.0.5)
Owner
Sujip Thapa
A passionate Web Developer from the country of Mount Everest, always striving to learn and try new Technologies - Experienced Laravel Developer
Sujip Thapa
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.

Chat Create a Chat application for your multiple Models Table of Contents Click to expand Introduction Installation Usage Adding the ability to partic

Tinashe Musonza 931 Dec 24, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.

Webdevetc BlogEtc - Complete Laravel Blog Package Quickly add a blog with admin panel to your existing Laravel project. It has everything included (ro

WebDevEtc. 227 Dec 25, 2022
A simple PHP package to show SweetAlerts with the Laravel Framework

Easy Sweet Alert Messages for Laravel Installation Require the package using Composer. composer require uxweb/sweet-alert If using laravel < 5.5 inclu

Uziel Bueno 824 Jan 7, 2023
This package provides extended support for our spatie/enum package in Laravel.

Laravel support for spatie/enum This package provides extended support for our spatie/enum package in Laravel. Installation You can install the packag

Spatie 264 Dec 23, 2022
Testbench Component is the de-facto package that has been designed to help you write tests for your Laravel package

Laravel Testing Helper for Packages Development Testbench Component is the de-facto package that has been designed to help you write tests for your La

Orchestra Platform 1.9k Dec 29, 2022
🥳🔐 This package is a Laravel package that checks if an email address is a spammer

This package is a Laravel package that checks if an email address is a spammer. It verifies your signups and form submissions to confirm that they are legitimate.

Endurance, the Martian 15 Dec 19, 2022
Simple user messaging package for Laravel

Laravel Messenger This package will allow you to add a full user messaging system into your Laravel application. Leave some feedback How are you using

Chris Gmyr 2.3k Dec 29, 2022
A package to easily make use of Simple Icons in your Laravel Blade views.

Blade Simple Icons A package to easily make use of Simple Icons in your Laravel Blade views. For a full list of available icons see the SVG directory.

UB Labs 12 Jan 17, 2022