Skip to content

Releases: josantonius/php-url

v2.0.1

29 Sep 21:31
0d9d817
Compare
Choose a tag to compare

What's Changed

  • pre-release/v2.0.1 by @josantonius in #3

  • Release/v2.0.1 by @josantonius in #4

  • 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.0...v2.0.1

v2.0.0

17 Aug 03:52
Compare
Choose a tag to compare

What's Changed

  • pre-release/v2.0.0 in #2

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.

  • 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.2.1...v2.0.0

1.2.1

17 Apr 22:22
Compare
Choose a tag to compare

What's Changed

  • Bug fixed in setUrlParams method.

Full Changelog: 1.2.0...1.2.1

1.2.0

22 Feb 03:03
Compare
Choose a tag to compare

What's Changed

  • Bugs fixed in getBaseUrl and setUrlParams method.

Full Changelog: 1.1.9...1.2.0

1.1.9

07 Jan 13:55
Compare
Choose a tag to compare

What's Changed

  • The tests were fixed.

  • Changes in documentation.

Full Changelog: 1.1.8...1.1.9

1.1.8

12 Nov 00:28
Compare
Choose a tag to compare

What's Changed

  • Do more testings.

  • Change the addBackslash method to addBackSlash method and refactoring.

  • Fix command in composer.json will output the ERROR: The file "src,tests" does not exist.

  • Added Josantonius\Url\Tests\UrlTest::testGetProtocolWithUrl() method.

  • Added Josantonius\Url\Tests\UrlTest::testGetDomainWithDomain() method.

  • Added Josantonius\Url\Tests\UrlTest::testGetDomainWithInvalidDomain() method.

  • Added Josantonius\Url\Tests\UrlTest::testAddBackSlashDefault() method.

  • Do more testings and fix some problems by @peter279k in #1

New Contributors

Full Changelog: 1.1.7...1.1.8

1.1.7

09 Nov 00:45
Compare
Choose a tag to compare

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.1.6...1.1.7

1.1.6

03 Nov 01:29
Compare
Choose a tag to compare

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 Url/phpcs.ruleset.xml file.

  • Deleted Url/src/bootstrap.php file.

  • Deleted Url/tests/bootstrap.php file.

  • Deleted Url/vendor folder.

  • Changed Josantonius\Url\Test\UrlTest class to Josantonius\Url\UrlTest class.

Full Changelog: 1.1.5...1.1.6

1.1.5

17 Sep 19:29
Compare
Choose a tag to compare

What's Changed

  • Unit tests supported by PHPUnit were added.

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

  • Added Url/src/bootstrap.php file

  • Added Url/tests/bootstrap.php file.

  • Added Url/phpunit.xml.dist file.

  • Added Url/_config.yml file.

  • Added Url/.travis.yml file.

  • Added Josantonius\Url\Url::setUrlParams() method.

  • Deleted Josantonius\Url\Url::segment() method.

  • Added Josantonius\Url\Url::segmentUri() method.

  • Deleted Josantonius\Url\Tests\UrlTest class.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetCurrentPage() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetProtocol() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testIsSSL() method.

  • Deleted Josantonius\Url\Tests\UrlTest::getDomain() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetUri() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetPort() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testAddBackslash() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testPrevious() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testRedirect() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testAutoLink() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testCustomAutoLink() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGenerateSafeSlug() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testSegment() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetFirstSegment() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetLastSegment() method.

  • Deleted Josantonius\Url\Tests\UrlTest::testGetBaseUrl() method.

  • Added Josantonius\Url\Test\UrlTest class.

  • Added Josantonius\Url\Test\UrlTest::testGetCurrentPage() method.

  • Added Josantonius\Url\Test\UrlTest::testGetBaseUrl() method.

  • Added Josantonius\Url\Test\UrlTest::testGetProtocol() method.

  • Added Josantonius\Url\Test\UrlTest::testIsSSL() method.

  • Added Josantonius\Url\Test\UrlTest::getDomain() method.

  • Added Josantonius\Url\Test\UrlTest::testGetUri() method.

  • Added Josantonius\Url\Test\UrlTest::testGetUriMethods() method.

  • Added Josantonius\Url\Test\UrlTest::testSetUrlParams() method.

  • Added Josantonius\Url\Test\UrlTest::testSetUrlParamsAlternativeVersion() method.

  • Added Josantonius\Url\Test\UrlTest::testGetPort() method.

  • Added Josantonius\Url\Test\UrlTest::testAddBackslashEnd() method.

  • Added Josantonius\Url\Test\UrlTest::testAddBackslashEndAlternativeVersion() method.

  • Added Josantonius\Url\Test\UrlTest::testAddBackslashTop() method.

  • Added Josantonius\Url\Test\UrlTest::testAddBackslashBoth() method.

  • Added Josantonius\Url\Test\UrlTest::testPrevious() method.

  • Added Josantonius\Url\Test\UrlTest::testRedirect() method.

  • Added Josantonius\Url\Test\UrlTest::testAutoLink() method.

  • Added Josantonius\Url\Test\UrlTest::testCustomAutoLink() method.

  • Added Josantonius\Url\Test\UrlTest::testGenerateSafeSlug() method.

  • Added Josantonius\Url\Test\UrlTest::testSegment() method.

  • Added Josantonius\Url\Test\UrlTest::testGetFirstSegmentFromString() method.

  • Added Josantonius\Url\Test\UrlTest::estGetFirstSegmentFromArray() method.

  • Added Josantonius\Url\Test\UrlTest::testGetLastSegmentFromString() method.

  • Added Josantonius\Url\Test\UrlTest::testGetLastSegmentFromArray() method.

Full Changelog: 1.1.4...1.1.5

1.1.4

16 Jul 22:32
Compare
Choose a tag to compare

What's Changed

  • Deleted Josantonius\Url\Exception\UrlException class.
  • Deleted Josantonius\Url\Exception\Exceptions abstract class.
  • Deleted Josantonius\Url\Exception\UrlException->__construct() method.

Full Changelog: 1.1.3...1.1.4