Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

+1 SWIFT/BIC payment type #380

Closed
wants to merge 1 commit into from
Closed

+1 SWIFT/BIC payment type #380

wants to merge 1 commit into from

Conversation

ronanguilloux
Copy link
Contributor

introducing a way to fake data using regex.

@@ -10,7 +10,8 @@
}
],
"require": {
"php": ">=5.3.3"
"php": ">=5.3.3",
"icomefromthenet/reverse-regex": "v0.0.6.2"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great tool! I didn't know it. If you want my opinion, this deserves a dedicated regexp() formatter in the Base Provider - there will be more applications for this.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a side note, since parsing regexp may be slow, it might be a good idea to implement a cache (only one Parser instance per regexp string).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that Faker now has its own regex-based generator (see #453), that you must use for your formatter.

@fzaninotto fzaninotto mentioned this pull request Aug 29, 2014
@ronanguilloux
Copy link
Contributor Author

new PR to come, using the new Faker's Regex-based generator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants