From 14b188a31e0454de53d1f9325a552261c41c1786 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 25 Feb 2024 10:39:57 -0300 Subject: [PATCH] Add docs. --- README.md | 68 +++++++++++++++++++++++++++++++++++-- composer.json | 10 +++--- src/Password.php | 2 +- src/TimeZone.php | 2 +- src/WordFormatter.php | 2 +- tests/PasswordTest.php | 4 +-- tests/TimeZoneTest.php | 8 ++--- tests/WordFormatterTest.php | 4 +-- 8 files changed, 82 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 81ce0b9..ec650be 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -

Collection of Helpers for PHP.

+

Collection of Helper for PHP.


@@ -45,7 +45,71 @@ or add ## Usage -[Check the documentation docs](/docs/README.md) to learn about usage. +The repository contains a collection of utility functions designed to simplify common programming tasks in PHP. + +Whether you're working on web development, data processing, or other projects, these helper functions can save you time +and effort. + +## Converts a camelCase formatted string to snake_case + +```php +assertGreaterThanOrEqual($prevOffset, $timeZone['offset']); } - // Verifica que el array tenga las claves correctas + // verify that the array contains the expected keys $this->assertArrayHasKey('timezone', $timeZone); $this->assertArrayHasKey('name', $timeZone); $this->assertArrayHasKey('offset', $timeZone); diff --git a/tests/WordFormatterTest.php b/tests/WordFormatterTest.php index 2b7c98e..fdf4551 100644 --- a/tests/WordFormatterTest.php +++ b/tests/WordFormatterTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace PHPForge\Helpers\Tests; +namespace PHPForge\Helper\Tests; -use PHPForge\Helpers\WordFormatter; +use PHPForge\Helper\WordFormatter; use PHPUnit\Framework\TestCase; final class WordFormatterTest extends TestCase