diff --git a/README.md b/README.md index 93ef16a..09704c4 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ ##### This Repository are in active Development *** +``` bash +composer require mkay-development/pocketbase-php-sdk +``` + ``` php // Example init and use use \Pb\Client as pb; @@ -35,4 +39,4 @@ $pb->collection(collectionIdOrName)->update(string $recordId, array $bodyParams // Deletes a single record by its id. $pb->collection(collectionIdOrName)->delete(string $recordId, array $queryParams = []); -``` \ No newline at end of file +``` diff --git a/src/Client.php b/src/Client.php index b97e438..e601786 100644 --- a/src/Client.php +++ b/src/Client.php @@ -23,7 +23,7 @@ class Client return new UsersCollection($this->url, 'records'); } - public function collection($url,string $collection, int $page = 1) + public function collection(string $collection) { return new Collection($this->url ,$collection); } diff --git a/src/Collection.php b/src/Collection.php index 00c3906..124c81a 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -20,7 +20,7 @@ class Collection /** * @var string */ - public static string $token = ''; + private static string $token = ''; /** * @param string $url @@ -32,7 +32,6 @@ class Collection $this->collection = $collection; } - /** * @param int $batch * @param array $queryParams