Download the PHP package attla/ulid without Composer

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

Attla ULID

Latest Stable Version Total Downloads

A PHP port of ulid/javascript with some minor improvements.

Universally Unique Lexicographically Sortable Identifier

UUID can be suboptimal for many uses-cases because:

Instead, herein is proposed ULID:

You can read more here

What are the benefits?

  1. With distributed systems you can be pretty confident that the primary key’s will never collide.
  2. When building a large scale application when an auto increment primary key is not ideal.
  3. It makes replication trivial (as opposed to int’s, which makes it REALLY hard)
  4. Safe enough doesn’t show the user that you are getting information by id, for example https://example.com/item/10

Installation

Usage

Use the methods get() or toString() to get the ULID as a string on ULID instances.

Migrations

When using the migration you should change $table->increments('id') or $table->id() to:

Simply, the schema seems something like this.

If the related model is using an ULID, the column type should reflect that also.

The ULID blueprint parameter is optional. But below is an example of how to use it.

Models

To set up a model to use ULID, simply use the HasUlid trait.

Controller

When you create a new instance of a model which uses ULIDs, this package will automatically add ULID as id of the model.

Testing

Benchmark

License

This package is licensed under the Octha.


All versions of ulid with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
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 attla/ulid contains the following files

Loading the files please wait ....