Download the PHP package dflydev/identity-generator without Composer

On this page you can find all versions of the php package dflydev/identity-generator. 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 identity-generator

Identity Generator

Provide a standard interface for generating unique identifiers.

The purpose of this library is to solve the problem of generating unique values that are "guaranteed" to be unique and are suitable to be used as an identity for objects.

Why?

While it is generally not a problem for data stores that implement sequential or auto increment ID fields natively to provide a guaranteed unique identity, there are use cases where it makes sense to randomize identity such that it is not able to be guessed as it follows no predictable pattern.

As such, most of the GeneratorInterface implementations provided by this library will be somewhat random in nature. This does not preclude the use of sequential GeneratorInterface implementations.

Mobs

Mobs are used to group identities. If a mob is specified, the value requested to be stored by the data store need only be unique to that mob. This allows a single data store to potentially store and manage unique identities across several namespaces.

The name 'group' can be ambiguous (and is a reserved word for potential data stores) so 'mob' was chosen based on the definition:

any group or collection of persons or things.

The "Uniqueness Guarantee"

The uniqueness guarantee is accomplished by attempting to add a generated value to a data store. The data store needs to be capable of knowing whether or not the value passed in is unique. This guarantee of uniqueness is only as strong as the given data store's ability to effectively determine uniqueness of a given value.

A data store should throw NonUniqueIdentityException in the case that a given value is not unique. The requested identity and mob values are available via this exception.

What About Collisions?

The IdentityGenerator will make maxRetries attempts to store generated values into the data store. This should allow for handling a finite number of collisions gracefully.

Should maxRetries be exhausted, GenerateException is thrown. It will contain a list of NonUniqueIdentityException exceptions equal to the number of maxRetries.

Requirements

License

MIT, see LICENSE.

Community

If you have questions or want to help out, join us in the #dflydev channel on irc.freenode.net.


All versions of identity-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
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 dflydev/identity-generator contains the following files

Loading the files please wait ....