Download the PHP package duffleman/dln without Composer

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

dln

Generates and validates driving license numbers (DLNs). Presently, only licenses issued by the UK DVLA are supported. Please open an issue if you'd like to see support added for another type of license - I'd be keen to work with you to enable this.

Installation

API

DLN::generate(array $userDetails[, $finalCharacters])

Generates a DLN based on the given user details, optionally adding the final characters to the end (as these characters cannot be generated accurately).

If the final characters are not provided, the output will not be a complete DLN and will fail validation in the DLN.validate function.

Returns a string either 13 or 16 characters in length, depending on whether the final characters are provided.

Throws if the user details or final characters are invalid.

DLN::validate($dln[, array $userDetails])

Verifies that a complete DLN is valid, optionally checking that the first 13 characters of the DLN are correct for the given user details.

Returns a boolean indicating whether the DLN is valid.

Throws if the user details are invalid.

Notes

The user details information, when provided, must be exactly as specified below:

DLNs follow a relatively strict format, and are exactly 16 characters in length. Only the first 13 characters of a DLN can be accurately generated - the remaining 3 characters cannot and must be provided separately.

The final characters also follow a strict format, and are exactly 3 characters in length. These are typically appended to the generated part of the DLN in order to form a complete & valid DLN.

Support

Please open an issue on this repository.

Authors

License

MIT licensed - see LICENSE file


All versions of dln with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 duffleman/dln contains the following files

Loading the files please wait ....