Skip to content

Releases: josantonius/php-hook

v2.0.3

Choose a tag to compare

@josantonius josantonius released this 29 Sep 16:43
68d16fd

What's Changed

  • pre-release/v2.0.3 by @josantonius in #4

  • Release/v2.0.3 by @josantonius in #5

  • The notation type in the test function names has been changed from camel to snake case for readability.

  • Functions were added to document the methods and avoid confusion.

  • Disabled the ´CamelCaseMethodName´ rule in ´phpmd.xml´ to avoid warnings about function names in tests.

  • The alignment of the asterisks in the comments has been fixed.

  • Tests for Windows have been added.

  • Tests for PHP 8.2 have been added.

Full Changelog: v2.0.2...v2.0.3

v2.0.2

Choose a tag to compare

@josantonius josantonius released this 11 Aug 12:45

What's Changed

  • Improved documentation.

Full Changelog: v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@josantonius josantonius released this 31 Jul 16:38

What's Changed

  • Removed the warning about version 1.x in the README.md files.

  • Fixed blank line at the beginning of the file in FUNDING.yml.

  • Fixed CodeCov link in the README.md files.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@josantonius josantonius released this 30 Jul 00:47
858fe63

What's Changed

  • release/v2.0.0 in #3

Version 1.x is considered as deprecated and unsupported. In this version (2.x) the library was completely restructured. It is recommended to review the documentation for this version and make the necessary changes before starting to use it, as it not be compatible with version 1.x.


  • The library was completely refactored.

  • Support for PHP version 8.1.

  • Support for earlier versions of PHP 8.1 is discontinued.

  • Replaced all static methods in Josantonius\Hook\Hook class.

  • Improved documentation; README.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md and CHANGELOG.md.

  • Removed Codacy.

  • Removed PHP Coding Standards Fixer.

  • The master branch was renamed to main.

  • The develop branch was added to use a workflow based on Git Flow.

  • Travis is discontinued for continuous integration. GitHub Actions will be used from now on.

  • Added .github/CODE_OF_CONDUCT.md file.

  • Added .github/CONTRIBUTING.md file.

  • Added .github/FUNDING.yml file.

  • Added .github/workflows/ci.yml file.

  • Added .github/lang/es-ES/CODE_OF_CONDUCT.md file.

  • Added .github/lang/es-ES/CONTRIBUTING.md file.

  • Added .github/lang/es-ES/LICENSE file.

  • Added .github/lang/es-ES/README file.

  • Deleted .travis.yml file.

  • Deleted .editorconfig file.

  • Deleted CONDUCT.MD file.

  • Deleted README-ES.MD file.

  • Deleted .php_cs.dist file.

Full Changelog: 1.1.0...v2.0.0

1.1.0

Choose a tag to compare

@josantonius josantonius released this 06 Jan 10:18

What's Changed

  • The tests were fixed.

  • Changes in documentation.

Full Changelog: 1.0.9...1.1.0

1.0.9

Choose a tag to compare

@josantonius josantonius released this 08 Nov 22:36

What's Changed

  • Implemented PHP Mess Detector to detect inconsistencies in code styles.

  • Implemented PHP Code Beautifier and Fixer to fixing errors automatically.

  • Implemented PHP Coding Standards Fixer to organize PHP code automatically according to PSR standards.

Full Changelog: 1.0.8...1.0.9

1.0.8

Choose a tag to compare

@josantonius josantonius released this 30 Oct 21:08

What's Changed

  • Implemented PSR-4 autoloader standard from all library files.

  • Implemented PSR-2 coding standard from all library PHP files.

  • Implemented PHPCS to ensure that PHP code complies with PSR2 code standards.

  • Implemented Codacy to automates code reviews and monitors code quality over time.

  • Implemented Codecov to coverage reports.

  • Added Hook/phpcs.ruleset.xml file.

  • Deleted Hook/src/bootstrap.php file.

  • Deleted Hook/tests/bootstrap.php file.

  • Deleted Hook/vendor folder.

  • Changed Josantonius\Hook\Test\HookTest class to Josantonius\Hook\HookTest class.

Full Changelog: 1.0.7...1.0.8

1.0.7

Choose a tag to compare

@josantonius josantonius released this 18 Oct 17:30

What's Changed

  • Added Josantonius\Hook\Hook::isAction() method.

  • Added Josantonius\Hook\Test\HookTest::testIsAction() method.

  • Added Josantonius\Hook\Test\HookTest::testIsNotAction() method.

Full Changelog: 1.0.6...1.0.7

1.0.6

Choose a tag to compare

@josantonius josantonius released this 13 Sep 17:37

What's Changed

  • Unit tests supported by PHPUnit were added.

  • The repository was synchronized with Travis CI to implement continuous integration.

  • Added Hook/src/bootstrap.php file

  • Added Hook/tests/bootstrap.php file.

  • Added Hook/phpunit.xml.dist file.

  • Added Hook/_config.yml file.

  • Added Hook/.travis.yml file.

  • Deleted Josantonius\Hook\Tests\HookTest::testAddHooksMethod() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testAddHooksArray() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testAddHooksInstance() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testCurrentHook() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testSetSingletonName() method.

  • Deleted Josantonius\Hook\Exception\HookException class.

  • Deleted Josantonius\Hook\Exception\Exceptions abstract class.

  • Deleted Josantonius\Hook\Exception\HookException->__construct() method.

  • Added Josantonius\Hook\Test\HookTest::testAddAction() method.

  • Added Josantonius\Hook\Test\HookTest::testAddActionWithPriority() method.

  • Added Josantonius\Hook\Test\HookTest::testAddActionWithPriorityAndArguments() method.

  • Added Josantonius\Hook\Test\HookTest::testAddActionWithCustomSingletonMethod() method.

  • Added Josantonius\Hook\Test\HookTest::testAddMultipleActions() method.

  • Added Josantonius\Hook\Test\HookTest::testAddMultipleActionsWithCustomSingletonMethod() method.

  • Added Josantonius\Hook\Test\HookTest::testDoActions() method.

  • Added Josantonius\Hook\Test\HookTest::testDoActionAndGetCurrentHook() method.

  • Added Josantonius\Hook\Test\HookTest::testDoActionsWithArguments() method.

  • Added Josantonius\Hook\Test\Example class.

  • Added Josantonius\Hook\Test\Example::getInstance() method.

  • Added Josantonius\Hook\Test\Example::singletonMethod() method.

  • Added Josantonius\Hook\Test\Example::meta() method.

  • Added Josantonius\Hook\Test\Example::css() method.

  • Added Josantonius\Hook\Test\Example::js() method.

  • Added Josantonius\Hook\Test\Example::afterBody() method.

  • Added Josantonius\Hook\Test\Example::slide() method.

  • Added Josantonius\Hook\Test\Example::form() method.

  • Added Josantonius\Hook\Test\Example::article() method.

  • Added Josantonius\Hook\Test\Example::footer() method.

Full Changelog: 1.0.5...1.0.6

1.0.5

Choose a tag to compare

@josantonius josantonius released this 24 Jun 03:59

What's Changed

  • The class was improved to work with different instances and some static methods were changed to dynamic ones.

Full Changelog: 1.0.4...1.0.5