Releases: nelson6e65/php_nml
Releases · nelson6e65/php_nml
v0.7.2 - PHP: Nelson Martell Library
Deprecate unsupported PHP 5.6 and PHP 7.0 versions:
http://php.net/supported-versions.php
v0.7.1 - PHP: Nelson Martell Library
Check release notes in CHANGELOG.
v0.7.0 - PHP: Nelson Martell Library
⭐ Important changes
This release is mainly intended to provide PHP 7 compatibility:
- 🔥 Rename class
NelsonMartell\Extensions\StringtoNelsonMartell\Extensions\Text, but still available in PHP 5.6 as alias. - 🔥 Rename class
NelsonMartell\ObjecttoNelsonMartell\StrictObject, but still available in PHP < 7.2 as alias. - 🔥 Drop support for PHP < 5.6.
- 🔥 Remove deprecated code in v0.6.
- 🔥 Remove global functions. Are only available under
NelsonMartellnamespace now. - 🐛 Correct minor issues.
📓 Development changes
There are some improvements for development:
- ⬆️ Use PHPUnit 5.7 and update tests.
- ⬆️ Use PHP Code Sniffer 3.0.
- ⬆️ Prepare code to use ApiGen 5.0 (removed as dependency).
- 🆙 Update some internal scripts and other moved to the composer.json.
- 🆕 Add utility scripts to the composer.json (check the CONTRIBUTING file for more details):
composer test-codecomposer analize-codecomposer autofix-codecomposer check-allcomposer build:composer build-code-coverage:composer build-code-coverage-clovercomposer build-code-coverage-xmlcomposer build-code-coverage-html
composer build-api
- 🆕 Add CONTRIBUTING file.
NOTE: API Documentation not updated to this release due to conflict in API generation tool.
More changes
See changes since v0.6.1 for more detailed info.
v0.6.0 - PHP: Nelson Martell Library
Changelog
Installation changes
- 🔥 Removed dependencies copy. Now you must install dependencies manually if not using
composer.
Public API changes
- 🐛 Fixed issue (possible bug) in properties with custom prefix. Now, it must be implemented
ICustomPrefixedPropertiesContainerin order to use custom getter/setter prefixes (in addition toget/setdefaults).- 🆕 Interface:
ICustomPrefixedPropertiesContainer. Enables the use of custom properties getter/setter's prefixes. - 🔥 Removed
PropertiesHandler::$getterPrefixandPropertiesHandler::$setterPrefixstatic attributes (functionality replaced byICustomPrefixedPropertiesContainermethods). - 🆙 Methods of
PropertiesHandlertrait are nowprotected(instead ofprivate) and rewritten to work in astaticcontext (instead of object context).
- 🆕 Interface:
- 🐛 Fixed possible errors in
Extensions\String::formatif placeholder values arestdClassor warnings if value is not convertible to string (this is a weakness inusortusage in\Cake\Utility\Text\insert).Extensions\String::formatnow throws a catchable\InvalidArgumentExceptionif value of placeholder can't be convertible to string to avoid this 🐛. - 🆕 Interface:
IPropertiesContainer. - 🆕 Interface:
IComparer. Split fromIComparableto use onlycomparemethod.Objectclass already implementsIComparer. - 🆙 Deprecate
IComparable::comparemethod, to be replaced byIComparer::compare. - 🆙
IComparable::compareToimplementations are now able to returnnullif objects can't be compared. - 🐛 🆙 Improve
Object::comparemethod to compare different types. - 🆕 Created namespaced global functions under
NelsonMartelland deprecated the global ones (typeof(mixed $obj)and other internal functions) to be removed in the nextv0.7.0orv0.8.0release (see issue #17). - 📝 Improved and updated API documentation.
- 🆙 Other minor improvements and fixes.
Classes/interfaces/traits names in this description are under
NelsonMartellnamespace by default (unless name starts with\).
Development changes
- 🆕 Tracking development progress in waffle.io.
- 🎨 Update copyright year and email in source files.
- 📝 Improve & update README file.
- ✅ Configure UnitTesting and added some tests for classes.
- ✅ Configure PHP CodeSniffer to be compliance with PSR2 coding standar by default.
- 🆕 Testing helpers (traits):
NelsonMartell\Test\Helpers\:ExporterPluginConstructorMethodTesterIComparerTesterIComparableTesterIPropertiesContainerTester
- 🆙 Configure Travis CI for testing and API documentation generation.
- 🆕 Utility scripts (read
script/README.mdfile: - 🎨 Other minor code and documentation improvements.
See changes since v0.5.1 for more detailed info.
v0.5.1 - PHP: Nelson Martell Library
v0.5.0 - PHP: Nelson Martell Library
Changelog
- Applied PSR2 corrections to ALL code. So, NML is compliant with PSR2 Code Standard now.
- Improved documentation in a few classes/methods/files.
- Reorganized some code to another files.
- Moved some traits to *.inc files.
- Added
PropertyHandlertrait, extracting properties features fromObjectclass, improved and maked more customizable and more errors throws that you can catch. Now you don'n need to extendObjectin order to use auto-properties, just use this trait. - Updated autoloader and added
config/bootstrap.php. - Fixed nml_msg functions.
Full development changelog: v0.4.6...v0.5.0
Migration issues
Check the Wiki: Migration issues: v0.5.0.
v0.3.4
Nelson Martell Library 0.3.4 (Alpha)
v0.2.1
PHP: NML 0.2.1 (Alpha)
v0.2.0
PHP: NML 0.2.1 [Namespaced] (Alpha)
v0.1.1
PHP: NML 0.1.1 (Alpha)