#Inspection Tools with homebrew-php#
##Prerequisites##
- Homebrew is installed
##Step 1: Installing homebrew-php##
brew tap homebrew/dupesbrew tap josegonzalez/homebrew-phpbrew install PHP53(or other version of your choice)
| function slugify(string) { | |
| const a = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ·/_,:;' | |
| const b = 'abgdevztiklmnopjrstufqgkscczwwxjh------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
| .replace(/&/g, '-and-') // Replace & with 'and' | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word characters |
#Inspection Tools with homebrew-php#
##Prerequisites##
##Step 1: Installing homebrew-php##
brew tap homebrew/dupesbrew tap josegonzalez/homebrew-phpbrew install PHP53 (or other version of your choice)