/deta-base-php

The unofficial PHP Deta Base Wrapper

Primary LanguagePHPMIT LicenseMIT

Basic PHP Wrapper for Deta Base

Latest Version on Packagist Total Downloads

A wrapper to Http API for Deta Base, you can find more information about Deta Base here.

Installation

You can install the package via composer:

composer require vitorhugoro1/deta-base-php

Usage

To make usage of this package, first do you need create a Deta Account following the tutorial here, after create a account you will have access to Project Key and Project Id (remember to save this, because this values do not will be show again).

After have Project Key and Project Id, you can create an Deta instance like below:

$deta = new Deta(getenv('DETA_PROJECT_ID'), getenv('DETA_PROJECT_KEY'));

On Deta class, do you have access to all this available actions:

  • list items (Do not have query yet)
  • create item
  • get item
  • update item
  • delete item

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email vitorhugo.ro10@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.