Download the PHP package gabeta/lara-pnn without Composer

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

Build Status

Lara-pnn

Lara-pnn is a laravel package which allows you to format your phone number in the new Ivorian format (change from 8 digits to 10 digits).

Note:

From January 31, 2021, Ivorian numbers will change to 10 digits, ARTCI has published a note to help with migration.

This package will be useful for existing applications with an Ivorian number database. Ivory Coast Diald code is +225

Installation

Require this package with composer.

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Laravel without auto-discovery:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

And add this to your facades in app.php:

The package was designed for the Ivorian case but if you have a similar case other than that of Côte d'Ivoire. This package handled it very well, you just have to publish and modify the package configuration file. See more options in config/larapnn.php

Copy the package config to your local config with the publish command:

Usage

Prepare your model

So that your models can format your Ivorian numbers, the model must implement the following interface and trait:

Then you must define the fields concerned by the migration.

We check the eligibility of the number before migration based on the dial code if the dial code value is in another field you must define with attribute $pnnDialCodeFields:

Basic usage: Migrate without change database value

You can make a basic use of it which will migrate your numbers without modifying the values ​​in the database.

Advanced usage: Database migration

For a migration of numbers in the database, the one-command package allows you to migrate all your numbers from a single mode.

You also have a command that allows you to rollback

You can add the take option to take records do you want:

You can add the skip option to skip the stats part (used if you are using a schedule job):


All versions of lara-pnn with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5|^5.6|^7.0|^7.1|^7.2|^7.3|^7.4
gabeta/gsm-detector Version ^1.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 gabeta/lara-pnn contains the following files

Loading the files please wait ....