Download the PHP package phil/url-bundle without Composer

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

phil/url-bundle

Link fields that detect their kind, a validation constraint, a column type and Twig filters.

phil/url-bundle brings phil/url into a Symfony application. TypedUrlType is one text field that reads an address, https by default, and detects its kind among the enum sets it accepts, giving a TypedUrl. The constraint UrlOfType checks that a text, a Url or a TypedUrl is of an accepted kind. With DoctrineBundle, the column type phil_url keeps a normalised Url in a VARCHAR(2048). Twig gets url_display, url_type() and url_type_label. Messages come in English and French.

It is for Symfony applications whose forms collect links: a social profile, a shop's website, an organisation's page in a registry. A field or a constraint accepts the international kinds of KnownUrlType, the application's own enums, or both, named as an enum class, a case, an EnumSet or a list of these. An address and its kind are stored as two columns the application maps itself, the kind with its own enum.

Use phil/url directly outside Symfony or inside a domain model. The bundle adds no rule of its own: normalisation, kinds and detection come from the library, and the bundle wires them into Symfony Form, Validator, Doctrine DBAL and Twig.

Status

Part State
TypedUrlType: one text field, the kind detected Implemented and tested
UrlOfType: a text, a Url or a TypedUrl of an accepted kind Implemented and tested
The column type phil_url, optional Implemented and tested
Twig: url_display, url_type(), url_type_label Implemented and tested
Messages in English and French Implemented and tested

Documentation

Document What it covers
Installation Requirements, installing, registering.
Accepted kinds How a field or a constraint names the kinds it accepts, the application's own included.
Forms TypedUrlType.
Validation UrlOfType.
Doctrine The column type phil_url, and keeping an address with its kind.
Twig url_display, url_type(), url_type_label.
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; phil/url 0.1.3 and phil/enums 0.3; symfony/config, symfony/dependency-injection, symfony/form, symfony/options-resolver and symfony/validator 8.2 or later. Doctrine DBAL 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 url-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
phil/enums Version ^0.3@dev
phil/url Version ^0.1.3@dev
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/form Version ^8.2
symfony/options-resolver Version ^8.2
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/url-bundle contains the following files

Loading the files please wait ...