Download the PHP package phil/address-bundle without Composer

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

phil/address-bundle

An address form for Symfony whose fields follow the country the person picks.

phil/address-bundle brings the addresses of phil/address into Symfony. AddressType shows the fields of the chosen country's format, in its order, named as it names them and required as it requires them. Where the country has states or provinces, the administrative area is a choice of them. When the country changes, a Stimulus controller reads the bundle's format endpoint and shows, hides and relabels the fields in the browser. On submission, the address is checked against its country and each wrong field gets its own error. The bundle also gives the constraint ValidAddress, the Doctrine column type phil_address for one JSON column, the Twig filters address, address_lines and address_label, and the Twig functions country_name and address_schema. Labels and messages are in English and French.

It is for Symfony applications where a customer, a member or an editor types an address that may be in any country, and where pages or postal labels show it back. Options limit the countries offered and add the recipient's names.

Outside Symfony, use phil/address on its own. The bundle keeps the rules in the library. The form and the constraint ask its validator, the endpoint reads its formats, the column type uses AddressArray, and Twig its formatter.

Status

Part State
AddressType: fields of the country, states as choices, errors per field Implemented and tested
The format endpoint and the Stimulus controller address Implemented and tested
ValidAddress, the column type phil_address Implemented and tested
Twig: address, address_lines, address_label, country_name, address_schema Implemented and tested

Documentation

Document What it covers
Installation Requirements, registering, configuration, the route.
Forms AddressType, its options, and its Stimulus controller.
Validation and storage ValidAddress and phil_address.
Twig The filters and the functions.
Extension points What an application implements, configures, replaces or relies on.
Testing How the bundle is tested.
Reference Every type of the bundle.

Quick start

Requirements

PHP 8.5 or later with ext-intl; phil/address 0.1; Symfony 8.2's config, dependency injection, form, HTTP foundation, Intl, options resolver and validator, and the translation contracts. Doctrine DBAL, the router and Twig are optional.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of address-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-intl Version *
phil/address Version ^0.1@dev
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/form Version ^8.2
symfony/http-foundation Version ^8.2
symfony/intl Version ^8.2
symfony/options-resolver Version ^8.2
symfony/translation-contracts Version ^3.6
symfony/validator Version ^8.2
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 phil/address-bundle contains the following files

Loading the files please wait ...