GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - functionality-library/functionality.php: A PHP Library To Make Your Work Work Easier/Faster

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 

Repository files navigation

Functionality.php (beta) 🔥

About ✍️

  • This Is A Php Library To Make Your Work Easier/Faster,
    You Can See Functionalty.php Website From Here
  • Project Created In 15 / 6 / 2022

Installation 📦

  • Using Composer
    composer require functionality-library/functionality.php
  • Now You Can Use Functionality.php Library In Your Project
  • Example
        require_once 'vendor/autoload.php';
        use Functionality\FunctionalityPhp\Functionality;
        
        echo Functionality::randomColor(); // Random Color

Usage 📚

  • Randoms functions
    • Functionality::randomColor() - Generate Random Color
    • Functionality::randomBoolean() - Generate Random Boolean
    • Functionality::randomNumber() - Generate Random Number
    • Functionality::randomString() - Generate Random String
    • Functionality::randomHsl() - Generate Random Hsl Color
    • Functionality::randomHexColor() - Generate Random Hex Color
  • Numbers functions
    • Functionality::getAvg(float $a, float $b) - Get Average butween two numbers
    • Functionality::isEven(float $number) - Check If Number Is Even
    • Functionality::isOdd(float $number) - Check If Number Is Odd
    • Functionality::isPrime(int $number) - Check If Number Is Prime
    • Functionality::reverseNumber(float $number) - Reverse a number (e.g. 12345 -> 54321)
  • Strings functions
    • Functionality::isPalindrome(string $string) - Check If String Is Palindrome
    • Functionality::capitalize(string $string) - Capitalize First Letter Of Words In String
    • Functionality::reverseString(string $string) - Reverse a string (e.g. abcdef -> fedcba)
  • Arrays functions
    • Functionality::filter(array $array, callable $callable) - Filter Array By Callable
    • Functionality::getFactors(int $number) - Get Factors Of Number
    • Functionality::maxArray(array $array) - Get Max Value Of Array
    • Functionality::minArray(array $array) - Get Min Value Of Array
    • Functionality::sumArray(array $array) - Get Sum Of Array
    • Functionality::randomElementFromArray(array $array) - Get Random Element From Array
    • Functionality::removeDuplicatesFromArray(array $array) - Remove Duplicates From Array
    • Functionality::shuffle(array $array) - Sort Array Randomly

To Get Started Contributing ☕

  • First Clone The Repository

    git clone https://github.com/functionality-library/functionality.php.git
  • Then Install Packages

    composer install
  • Run Tests using phpunit

    composer run-script test
  • Feel Free To Add What You Want!

  • If there is any issue, please open an issue on GitHub

  • If you have any suggestion, please open an issue on GitHub

  • If you have any question, please open an issue on GitHub

About

A PHP Library To Make Your Work Work Easier/Faster

Topics

betadocumentationfunctional-programmingfunctionalitylibraryopen-sourcephpphp-functionsphp-library

Resources

Readme
MIT license
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.