kxpler442b / phpocketbase

phpocketbase is a library written in PHP that allows you to communicate with a Pocketbase instance using the RESTful api.
MIT License
0 stars 0 forks source link

Place for discussions? #1

Open maietta opened 1 year ago

maietta commented 1 year ago

Hi. I too am looking for a PHP SDK or library for interacting with Pocketbase. I know this project is very new, but perhaps we could have the Discussions tab made available for this Github repo? Feels more appropriate than only using Issues.

I am highly curious about how the realtime database functionality works and how this can be implemented in PHP. I may go ahead and move a couple of my projects to a NodeJS backend so I can implement Pocketbase for the realtime database connectivity for my front-end application, but doing the same in PHP would certainly same me a lot of code migration headaches.

Anyway, thank you for starting this project and hope you'll get some community help in implementing this. I just don't have extra time right now to help on this.

maietta commented 1 year ago

My response to your post at: https://www.reddit.com/r/PHPhelp/comments/zv17y1/help_using_pocketbase_in_php/

Regarding the malformed json, perhaps this is a POST request and there are two types of requests that I know that can be made.

url-encoded and multipart.

I've run into similar issues implementing something to an API in the past, where the data needed to be sent via multipart instead of url-encoded.