Download the PHP package nia-cloud-official/lola-sdk without Composer
On this page you can find all versions of the php package nia-cloud-official/lola-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nia-cloud-official/lola-sdk
More information about nia-cloud-official/lola-sdk
Files in nia-cloud-official/lola-sdk
Package lola-sdk
Short Description A PHP SDK for interacting with the Lola Toolkit.
License MIT
Informations about the package lola-sdk
Lola SDK
Lola SDK is a PHP library designed to simplify the interaction with Lola's services, providing an easy-to-use interface for managing database connections and performing CRUD operations.
Features
- Establish secure database connections
- Perform Create, Read, Update, and Delete (CRUD) operations
- Apply filters to database queries
- Error handling and logging
Installation
To install the Lola SDK, you can use Composer. Add the following to your composer.json file:
Then run:
Usage
Establishing a Database Connection
The DatabaseController class handles the database connection. Before using it, make sure to define the necessary constants (DB_HOST, DB_USER, DB_PASS, DB_NAME, and optionally LIST_TABLE).
Collecting Data
To collect all items from the database:
Applying Filters
To apply a filter based on a POST parameter:
Adding Items
To add a new item to the database:
Deleting Items
To delete an item by its ID:
Error Handling
Errors during database operations are handled by terminating the script and logging the error message. Make sure to check the logs for any issues.
Contributing
We welcome contributions! Please see our contributing guidelines for more information.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
If you have any questions or need further assistance, feel free to open an issue or contact us.