Installation methods
Production
rubygems.org (universal)
gem install php-serialized-formatter
ArchLinux
Manually:
git clone https://aur.archlinux.org/php-serialized-formatter.git
cd php-serialized-formatter
makepkg -sic
With an AUR helper (Pacman wrappers), e.g. yay:
yay -S php-serialized-formatter
Development
It’s better to use ASDM-VM to have latests version of ruby and to avoid trashing your system ruby.
rubygems.org
gem install --development php-serialized-formatter
git
Just replace x.x.x
with the gem version you see after gem build
.
git clone https://github.com/noraj/php-serialized-formatter.git php-serialized-formatter
cd php-serialized-formatter
gem install bundler
bundler install
gem build psf.gemspec
gem install php-serialized-formatter-x.x.x.gem
Note: if an automatic install is needed you can get the version with $ gem build php-serialized-formatter.gemspec | grep Version | cut -d' ' -f4
.
No install
Run the library in irb without installing the gem.
From local file:
irb -Ilib -rpsf
Same for the CLI tool:
ruby -Ilib -rpsf bin/psf