printf-parser

A PHP compatible tokenizing printf string parser

MIT License

Downloads
35.6K
Stars
4
Committers
2
printf-parser - Rough in PHP 8.1 && 8.2 Support Latest Release

Published by donatj over 1 year ago

What's Changed

Generally adds support for PHP 8.1 and 8.2

New Contributors

Full Changelog: https://github.com/donatj/printf-parser/compare/v0.2.0...v0.3.0

printf-parser - Improved Flag Parsing + More

Published by donatj over 3 years ago

  • Improved flag parsing
    • + show positive flag parsing corrected. Previously did not function.
    • Minor breaking change: return value of ArgumentLexeme::getShowPositive changed from ?bool to bool as false was not a possible state.
    • - left justification flag did not trigger in some contexts. Corrected.
    • Minor breaking change: return value of ArgumentLexeme::getLeftJustified changed from ?bool to bool as false was not a possible state.
    • Flags should now parse correctly regardless of order. Prior there were issues on certain orderings.
  • Vastly improved documentation
  • Improved testing - now tested on PHP 7.1 -> 8.0
  • Numerous behind the scenes fixes.
printf-parser - Initial Release

Published by donatj over 5 years ago