Download the PHP package adnane/simple-uuid without Composer

On this page you can find all versions of the php package adnane/simple-uuid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package simple-uuid

Simple Uuid

a simple laravel package to generate uuid instead of auto incrementing ids as primary keys.

what's even a uuid?

UUID stands for Universally Unique IDentifier. as you may encounter the acronym of it GUID (Globally Unique IDentifier).

It’s a 16 bytes Worldwide unique number! And absolulty, without using any kind of central authority or any external APIS. Actually, the way it is generated, following a standardized algorithm, ensures that every UUID is unique. and kinda impossible to generate the exact same UUID as another one somewhere else in the whole world.

and generally, it's something that looks like this:

but, why do you even need to use it and not just the auto incrementing ids?

well, it's not fair to just say that you always need to use the UUID thing istead of auto incrementing ids to index your objects in your database. but it's something cool to know the different uses of both of them and choose depending on your needs.

here are some reasons why you should use UUIDs:

installation

Warning: This package is not installable via Composer 1.x, make sure you upgrade to Composer 2+ before trying to install it.

using composer:

the package's service provider is auto loaded so no need to add it in the providers array in app.php .actually, you may need to define an alias for the package's trait , in your app.php in the aliases array as bellow:

use

as this package destined for simple use you can simply just:

  1. import the package's trait inside the model that you want to use uuid on:

  2. add it to the model class:

  3. update your target migration file:

  4. run laravel migrations

  5. store a dummy record & check out stored id:

  6. use as foreign key

contributing

everyone is welcome :)

credit

Adnane.Ka


All versions of simple-uuid with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adnane/simple-uuid contains the following files

Loading the files please wait ....