Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PHP for the REST server? #45

Open
Matt2012 opened this issue Oct 2, 2014 · 1 comment
Open

Using PHP for the REST server? #45

Matt2012 opened this issue Oct 2, 2014 · 1 comment

Comments

@Matt2012
Copy link

Matt2012 commented Oct 2, 2014

Is it possible to use a PHP MySql backend?

@Matt2012 Matt2012 changed the title Using PHP for he REST server? Using PHP for the REST server? Oct 2, 2014
@kmalakoff
Copy link
Member

I do not know much about PHP MySQL, but if you can provide a RESTful endpoint, it should be possible.

Take a look at BackboneREST (especially the tests) for a Node.js implementation.

There are a few important details:

  1. there is a query syntax on GET in index that would need to be ported

  2. you would need to generate join table controllers

  3. the query parameters are parsed like JSON to differentiate between numbers and strings for queries and ids.

2 would be optional if you are not using many to many relationships. You might be able to get by with a simplified implementation on 1 to start (like skipping paging) depending on your use cases.

If you need support, I'd be happy to answer questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants