Download the PHP package mariuszmalek/unique-number-generator without Composer

On this page you can find all versions of the php package mariuszmalek/unique-number-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 unique-number-generator

Unique-Number-Generator

Easy creation of unique number generator for your Eloquent models in Laravel.

NOTE: These instructions are for the latest version of Laravel.
If you are using an older version, please install a version of the package that correlates to your Laravel version.

Installation

Depending on your version of Laravel, you should install a different version of the package.

  1. Install the package via Composer:

    The package will automatically register its service provider.

  2. Optionally, publish the configuration file if you want to change any defaults:

Usage

Saving a model is easy:

The first parameter is $model in which we search an existing class, the second is a specific column in the database.

The next one is the prefix that will be added to the beginning of the result. The last one is the parameters for specific search classes. Only the first two parameters are required

Using traits:

You can add a Trait, so that after creating the model, a new unique number will be automatically created. You also need to add the uniqueColumn function which will contain the name of the column to be used.

Bugs, Suggestions, Contributions and Support

Please use Github for reporting bugs, and making comments or suggestions.

See CONTRIBUTING.md for how to contribute changes.

Copyright and License

unique-number-generator was written by Mariusz Malek and is released under the MIT License.

Copyright (c) 2021 Mariusz Malek


All versions of unique-number-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/config Version ^8.0
illuminate/database Version ^8.0
illuminate/support Version ^8.0
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 mariuszmalek/unique-number-generator contains the following files

Loading the files please wait ....