Skip to content

jundelleb/php-console-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Console Helpers

Latest Stable Version Total Downloads Latest Unstable Version License

A simple command-line helper functions built for developers. This package uses the following libraries:

Getting Setup

  1. composer global require jundelleb/php-console-helper
  2. Make sure to place the ~/.composer/vendor/bin directory (or the equivalent directory for your OS) in your PATH so the pch executable can be located by your system.

Helpers

  • Faker (faker)
  • Converter(convert)

Basic Usage

  1. Generate random name: pch faker name

     Output: Isom Medhurst
    
  2. Generate a sentence with 10 words: pch faker sentence --params=10

     Output: Aut qui et eum itaque voluptatibus qui rem sit blanditiis.
    

Please visit Faker for complete lists of available formatters.

  1. Convert input string to md5: pch convert:md5 test

     Output: 098f6bcd4621d373cade4e832627b4f6
    
  2. Convert input string to base64 encoded: pch convert:base64 test

     Output: dGVzdA==
    
  3. Decode base64 encoded string: pch convert:base64 dGVzdA== --decode

     Output: test
    

Enjoy! :)

About

A simple command-line helper functions built for developers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages