Download the PHP package hunnomad/ravendb without Composer
On this page you can find all versions of the php package hunnomad/ravendb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hunnomad/ravendb
More information about hunnomad/ravendb
Files in hunnomad/ravendb
Package ravendb
Short Description This class provides a simple interface for interacting with a RavenDB database using HTTP requests. It supports basic operations such as `PUT`, `GET`, `QUERY`, and `DELETE` for managing documents within a RavenDB instance. The class utilizes cURL for making HTTP requests and expects a PEM file for SSL certificate verification.
License MIT
Informations about the package ravendb
RavenDB PHP Class
Overview
This class provides a simple interface for interacting with a RavenDB database using HTTP requests. It supports basic operations such as PUT, GET, QUERY, and DELETE for managing documents within a RavenDB instance. The class utilizes cURL for making HTTP requests and expects a PEM file for SSL certificate verification.
Features
- PUT: Store or update a document in the database.
- GET: Retrieve a document from the database by its ID.
- QUERY: Perform a custom query against the database.
- DELETE: Remove a document from the database.
Requirements
- PHP 7.4 or higher
- cURL extension enabled
- A valid RavenDB server setup with SSL certificates
Installation
To use this class, simply include it in your PHP project:
Then instantiate it with the required parameters:
USAGE
1. Put a Document
2. Get a Document
3. Query the Database
4. Delete a Document
Error Handling
This class throws exceptions when unexpected HTTP status codes are encountered. Make sure to handle errors properly.
License
This project is licensed under the MIT License - see the LICENSE file for details.