Project

phuby

0.09
No commit activity in last 3 years
No release in over 3 years
Phuby wraps PHP in a loving embrace. Exposes a PHP runtime in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.5.0
>= 2.5.0
>= 2.0.3
 Project Readme

phuby

DESCRIPTION:

Phuby wraps PHP in a loving embrace. Exposes a PHP runtime in ruby

FEATURES/PROBLEMS:

  • many

SYNOPSIS:

php = Phuby::Runtime.new
php.start

php.eval('$hello = "world"')
assert_equal "world", php['hello']

php.stop

REQUIREMENTS:

  • php

BUILD INSTRUCTIONS:

I've only tested this gem on OS X. It should work on other operating systems, but you'll need to install php with the --enable-embed flag yourself.

On OS X:

Make sure you have mysql installed with homebrew before installing this gem

No, seriously, make sure that mysql is installed. It's hardcoded in the extconf.rb, and I don't feel like fixing it. If you would like to submit a patch that would be great, but I don't want to deal. Just install mysql.

Run this command (IT WILL TAKE A LONG TIME BECAUSE IT LITERALLY BUILDS PHP):

$ gem install phuby

On other operating systems, install php first, then do the gem install.

INSTALL:

  • No.

I can't even!

  • Don't

LICENSE:

(The MIT License)

Copyright (c) Aaron Patterson and Ryan Davis of Seattle.rb

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.