Releases: squirrelphp/strings
Set PHP8 as minimum version
- Rename Annotation directory to Attribute (BC break)
- Check tests with Psalm
- Remove doctrine annotations dependency & support
Add streamline email filter
This will lowercase the domain part but keep the username part of the email case-sensitive, as defined by the current RFCs. This way duplicates because of domain part casings can be avoided.
v0.9.2: Make $names in attribute public
There were some problems with Symfony var-exporter when using forms. Actual cause is unclear, but setting $names to public fixes the issue and has no other ramifications.
Support PHP8 attributes
Attributes instead of annotations can now be used. Both are supported on PHP8.
Better support typed properties
Also removes compatibility to diverging property paths defined
in the form, we only support direct properties which are
mapped 1:1 in the form. This seems easiest and anything else
would just lead to a headache, although maybe there is a better
option sometime in the future or when we go PHP 8 only.
Note that if filter annotations are used without direct mappings,
this might lead to errors and/or not work anymore.
The PHP 8 support is preliminary, as it was not tested yet.
v0.8.6
Add RemoveHTMLTagCharacters filter
Removes <, > and ".
v0.8.4: Make library PHP 7.4+ only
- Use new functionality as far as possible - Improve project configuration
v0.8.3
v0.8.2: Add string testers to component
These test a string according to a certain criteria and return either true or false. The goal is to have some commonly useful testers in this component. So far we just have the valid UTF8 and the valid datetime testers, but additional testers for things like IPs, domains, emails etc. could be helpful too. Some of the string filters could be adapted to have a tester version, for when you just want to find out if a string is valid not forceably change it.