merge into master

This commit is contained in:
Martz
2023-02-24 21:50:49 +01:00
3 changed files with 7 additions and 4 deletions

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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