Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitorhugoro1/deta-base-php
The unofficial PHP Deta Base Wrapper
https://github.com/vitorhugoro1/deta-base-php
deta deta-base php
Last synced: 3 months ago
JSON representation
The unofficial PHP Deta Base Wrapper
- Host: GitHub
- URL: https://github.com/vitorhugoro1/deta-base-php
- Owner: vitorhugoro1
- License: mit
- Created: 2021-05-23T05:14:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T14:34:34.000Z (over 2 years ago)
- Last Synced: 2024-05-10T15:33:26.092Z (6 months ago)
- Topics: deta, deta-base, php
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-deta - Deta Base PHP - Basic PHP Wrapper for Deta Base. (SDK's / PHP SDK)
README
# Basic PHP Wrapper for Deta Base
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vitorhugoro1/deta-base-php.svg?style=flat-square)](https://packagist.org/packages/vitorhugoro1/deta-base-php)
[![Total Downloads](https://img.shields.io/packagist/dt/vitorhugoro1/deta-base-php.svg?style=flat-square)](https://packagist.org/packages/vitorhugoro1/deta-base-php)A wrapper to [Http API](https://docs.deta.sh/docs/base/http) for Deta Base, you can find more information about Deta Base [here](https://docs.deta.sh/docs/base/about).
## Installation
You can install the package via composer:
```bash
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](https://docs.deta.sh/docs/home), 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:
```php
$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
``` bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Vitor Merencio](https://github.com/vitorhugoro1)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.