Download the PHP package erwane/cakephp-contact without Composer

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

CakePHP 5.x plugin to manipulate contact data

codecov Packagist Downloads Packagist Version

CakePHP-Contact is here to help you save, test and display all locality and contact datas like phone & address.

Version map

Contact plugin branch CakePHP core PHP min
1.x 1.x ^3.2 PHP 7.2
2.x 2.x ^4.0 PHP 7.2
3.x 3.x ^5.0 PHP 8.1

Documentation

Installing with Composer

Use composer to install it

Phone numbers

Utility

Contact\Utility\Phone::format(?string $text = null, array $options = [])

$text is string or null $options is an array with this possible options and output

PhoneNumberType

The phone number database type automatically format request data to an E164 phone number (+33....) It also format phone number from unformated database result.

How to use PhoneNumberType

Default country

Phone number in forms are set in the user country format, like 0123456789 for France. But there can be conflict, depends of the user Country who fill the form. You can set defaultCountry for all phone number not set in international format.

Now, all non international form phone numbers was formated with +32 prefix

Phone number validation

Contact plugin provide a simple phone number validation rule

Phone Helper

You can format a phone number in a really simple manner;

Address trait

This trait must be attached to \Cake\ORM\Entity in your App. It take address data from Entity fields and format it to standard array or string format.

The fields and format can be configured in Entity or by method.

Default

Address fields matching

By default, address will be extracted from this fields :

Data can be in an associated model. Use dot format Countries.title to set it.

Address text format

Address text ($entity->address_text) use Cake\Utility\Text::insert() method to format fields.

Default address text format is :

Address trait configuration

You can change default configuration in two ways.

With methods

In entity


All versions of cakephp-contact with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
cakephp/cakephp Version ^5.0
giggsey/libphonenumber-for-php Version ^8.13
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 erwane/cakephp-contact contains the following files

Loading the files please wait ....