All Projects → flibustier → Regex Assert Symfony

flibustier / Regex Assert Symfony

Common Regex to use with Assert in Symfony's entity

Projects that are alternatives of or similar to Regex Assert Symfony

Translation
The Translation component provides tools to internationalize your application.
Stars: ✭ 6,196 (+123820%)
Mutual labels:  symfony
Cocorico
👐 Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/en/ 🚀 Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. 😍 We are hiring (telecommute welcome 🏡): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
Stars: ✭ 765 (+15200%)
Mutual labels:  symfony
Idea Php Symfony2 Plugin
IntelliJ IDEA / PhpStorm Symfony Plugin
Stars: ✭ 797 (+15840%)
Mutual labels:  symfony
Symfony Cmf
Meta package tying together all the key packages of the Symfony CMF project.
Stars: ✭ 742 (+14740%)
Mutual labels:  symfony
Apache Pack
A Symfony Pack for Symfony Apache
Stars: ✭ 753 (+14960%)
Mutual labels:  symfony
Pim Community Dev
[Community Development Repository] The open source Product Information Management (PIM)
Stars: ✭ 774 (+15380%)
Mutual labels:  symfony
Symfony Docker
A Docker-based installer and runtime for Symfony. Install: download and `docker-compose up`.
Stars: ✭ 732 (+14540%)
Mutual labels:  symfony
Polyfill Php80
This component provides functions unavailable in releases prior to PHP 8.0.
Stars: ✭ 798 (+15860%)
Mutual labels:  symfony
Symfony 5 Es Cqrs Boilerplate
Symfony 5 DDD ES CQRS backend boilerplate
Stars: ✭ 759 (+15080%)
Mutual labels:  symfony
Crm Application
OroCRM - an open-source Customer Relationship Management application.
Stars: ✭ 785 (+15600%)
Mutual labels:  symfony
En Marche.fr
Le site principal du mouvement En Marche !
Stars: ✭ 743 (+14760%)
Mutual labels:  symfony
Thelia
Thelia is an open source tool for creating e-business websites and managing online content. Repo containing the new major version (v2)
Stars: ✭ 752 (+14940%)
Mutual labels:  symfony
Php Pm
PPM is a process manager, supercharger and load balancer for modern PHP applications.
Stars: ✭ 6,358 (+127060%)
Mutual labels:  symfony
Alicebundle
A Symfony bundle to manage fixtures with Alice and Faker.
Stars: ✭ 742 (+14740%)
Mutual labels:  symfony
Citybound
A work-in-progress, open-source, multi-player city simulation game.
Stars: ✭ 6,646 (+132820%)
Mutual labels:  city
Commonregex
🍫 A collection of common regular expressions for Go
Stars: ✭ 733 (+14560%)
Mutual labels:  regex
Py regular expressions
Learn Python Regular Expressions step by step from beginner to advanced levels
Stars: ✭ 770 (+15300%)
Mutual labels:  regex
Gluggibundle
Modular layout preview system, to be used within a symfony app.
Stars: ✭ 5 (+0%)
Mutual labels:  symfony
Pihole Regex
Custom regex filter list for use with Pi-hole.
Stars: ✭ 799 (+15880%)
Mutual labels:  regex
Sylius
Open Source eCommerce Platform on Symfony
Stars: ✭ 6,598 (+131860%)
Mutual labels:  symfony

Regex-Assert-Symfony

Commun Regex to use with Assert in Symfony's entity

Firstname Lastname City

Compatible with international names

Pattern

/^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùÞúûüųūæÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/u

Usage

@Assert\Regex(pattern="/^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùæúûüųūÿýżźñçÞčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/u")

Lastname Firstname Examples

Mathias d'Arras
Martin Luther King, Jr.
Hector Sausage-Hausen

City Examples

Toronto
St. Catharines
San Fransisco
Val-d'Or
Presqu'ile
Niagara on the Lake
Niagara-on-the-Lake
München
toronto
toRonTo
villes du Québec
Provence-Alpes-Côte d'Azur
Île-de-France
Kópavogur
Garðabær
Sauðárkrókur
Þorlákshöfn

Postal code

Compatible with international country code

Pattern

/^[0-9 ,.-]+$/

Usage

@Assert\Regex(pattern="/^[0-9 ,.-]+$/")

Examples

1234
69001
12-3456
1234-5678

Email

It's recomended to use the string constraints Email

Usage

/**
 * @Assert\Email(
 *     message = "The email '{{ value }}' is not a valid email.",
 *     checkMX = true
 * )
 */

Authors

CATIMEL François & PLATTEAU Jonathan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].