Skip to content

PHP shim to work transparently with REST and JSON requests, enables support in PHP for Backbone default behaviour

Notifications You must be signed in to change notification settings

quimcalpe/php-backbone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

php-backbone

PHP shim to work transparently with REST and JSON requests, enables support in PHP for Backbone default behaviour. In other words, no need to use Backbone.emulateHTTP=true nor Backbone.emulateJSON=true flags for legacy servers.

Usage

require_once 'php-backbone.php';  // require php-backbone shim

// you can use now $_PUT, $_DELETE as you would expect

Comments

It should work on clients/libraries/frameworks other than Backbone, any RESTful interface and/or JSON requests should "just work", but I only tested Backbone.

Caveats

$_PUT and $_DELETE variables are not PHP Superglobals, you need to use "global $_PUT, $_DELETE;" in your functions/methods as a normal global variable would require.

About

PHP shim to work transparently with REST and JSON requests, enables support in PHP for Backbone default behaviour

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages