{"id":37236347,"url":"https://github.com/functionality-library/functionality.php","last_synced_at":"2026-01-16T04:52:08.794Z","repository":{"id":37799954,"uuid":"503882662","full_name":"functionality-library/functionality.php","owner":"functionality-library","description":"A PHP Library To Make Your Work Work Easier/Faster","archived":false,"fork":false,"pushed_at":"2022-06-19T23:12:04.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-18T00:47:10.088Z","etag":null,"topics":["beta","documentation","functional-programming","functionality","library","open-source","php","php-functions","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/functionality-library.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"alieldeba","open_collective":"alieldeba"}},"created_at":"2022-06-15T18:37:49.000Z","updated_at":"2023-01-06T16:11:36.000Z","dependencies_parsed_at":"2022-06-22T17:44:06.597Z","dependency_job_id":null,"html_url":"https://github.com/functionality-library/functionality.php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/functionality-library/functionality.php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionality-library%2Ffunctionality.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionality-library%2Ffunctionality.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionality-library%2Ffunctionality.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionality-library%2Ffunctionality.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionality-library","download_url":"https://codeload.github.com/functionality-library/functionality.php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionality-library%2Ffunctionality.php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beta","documentation","functional-programming","functionality","library","open-source","php","php-functions","php-library"],"created_at":"2026-01-15T04:13:39.649Z","updated_at":"2026-01-15T04:13:40.134Z","avatar_url":"https://github.com/functionality-library.png","language":"PHP","readme":"# \u003cp align=\"center\"\u003eFunctionality.php (beta) 🔥\u003c/p\u003e\n\n\u003cp float=\"right\"\u003e\n\u003c!-- License --\u003e\n\u003cimg src=\"https://img.shields.io/github/license/functionality-library/functionality.php?style=for-the-badge\" /\u003e\n\u003c!-- Stars --\u003e\n \u003cimg src=\"https://img.shields.io/github/stars/functionality-library/functionality.php?style=for-the-badge\" /\u003e\n\u003c/p\u003e\n\n## About ✍️\n\n- This Is A Php Library To Make Your Work Easier/Faster,\u003cbr /\u003e\n  You Can See Functionalty.php Website From Here\n- Project Created In 15 / 6 / 2022\n\n## Installation 📦\n\n  - Using Composer\n    ```bash\n    composer require functionality-library/functionality.php\n    ```\n  - Now You Can Use Functionality.php Library In Your Project\n  - Example\n    ```php\n        require_once 'vendor/autoload.php';\n        use Functionality\\FunctionalityPhp\\Functionality;\n        \n        echo Functionality::randomColor(); // Random Color\n    ```\n## Usage 📚\n- Randoms functions\n    - `Functionality::randomColor()` - Generate Random Color\n    - `Functionality::randomBoolean()` - Generate Random Boolean\n    - `Functionality::randomNumber()` - Generate Random Number\n    - `Functionality::randomString()` - Generate Random String\n    - `Functionality::randomHsl()` - Generate Random Hsl Color\n    - `Functionality::randomHexColor()` - Generate Random Hex Color\n- Numbers functions\n    - `Functionality::getAvg(float $a, float $b)` - Get Average butween two numbers\n    - `Functionality::isEven(float $number)` - Check If Number Is Even\n    - `Functionality::isOdd(float $number)` - Check If Number Is Odd\n    - `Functionality::isPrime(int $number)` - Check If Number Is Prime\n    - `Functionality::reverseNumber(float $number)` - Reverse a number (e.g. 12345 -\u003e 54321)\n- Strings functions\n    - `Functionality::isPalindrome(string $string)` - Check If String Is Palindrome\n    - `Functionality::capitalize(string $string)` - Capitalize First Letter Of Words In String\n    - `Functionality::reverseString(string $string)` - Reverse a string (e.g. abcdef -\u003e fedcba)\n- Arrays functions\n    - `Functionality::filter(array $array, callable $callable)` - Filter Array By Callable\n    - `Functionality::getFactors(int $number)` - Get Factors Of Number\n    - `Functionality::maxArray(array $array)` - Get Max Value Of Array\n    - `Functionality::minArray(array $array)` - Get Min Value Of Array\n    - `Functionality::sumArray(array $array)` - Get Sum Of Array\n    - `Functionality::randomElementFromArray(array $array)` - Get Random Element From Array\n    - `Functionality::removeDuplicatesFromArray(array $array)` - Remove Duplicates From Array\n    - `Functionality::shuffle(array $array)` - Sort Array Randomly\n\n## To Get Started Contributing ☕\n\n- First Clone The Repository\n\n  ```bash\n  git clone https://github.com/functionality-library/functionality.php.git\n  ```\n\n- Then Install Packages\n\n  ```bash\n  composer install\n  ```\n\n- Run Tests using `phpunit`\n\n  ```bash\n  composer run-script test\n  ```\n\n- Feel Free To Add What You Want! \n- If there is any issue, please open an issue on GitHub\n- If you have any suggestion, please open an issue on GitHub\n- If you have any question, please open an issue on GitHub\n","funding_links":["https://patreon.com/alieldeba","https://opencollective.com/alieldeba"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionality-library%2Ffunctionality.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionality-library%2Ffunctionality.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionality-library%2Ffunctionality.php/lists"}