seba/pantry
最新稳定版本:v2.0.3
Composer 安装命令:
composer require seba/pantry
包简介
SDK for getpantry.cloud
README 文档
README
Easy to use library for interacting with the pantrycloud API.
🛠 Instalation
You can install the package via composer:
composer require seba/pantry
❔ Usage
$pantry = new new \Pantry\Client("YOUR_PANTRY_ID");
Create a Basket
$basket = $pantry->createBasket("ILoveThisBasket", [ "key" => "value" ]);
Get a Basket
There are several ways to get a basket
$basket = $pantry->getBasket("ILoveThisBasket"); // Get the basket instance echo $basket; // The basket data as a json string var_dump($basket); // The basket data as an object $basketData = $basket(); // The basket data as an object $basketData = $basket->get(); // The basket data as an object
Update a Basket
$basket->update([ "newKey" => "newValue" ]);
Delete a Basket
$basket->delete();
Get Pantry information
There are several ways to get information about the pantry
echo $pantry; // The pantry data as a json string var_dump($pantry); // The pantry data as an object $pantryData = $pantry(); // The pantry data as an object $pantryData = $pantry->getData(); // The pantry data as an object
⚖️ License
This project is under the MIT License.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-29