Download the PHP package nozell/database without Composer

On this page you can find all versions of the php package nozell/database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package database

📚 Database Library | Librería de Base de Datos

A lightweight and flexible PHP library for managing databases in YAML, JSON, and SQLite formats. Ideal for developers who need a simple solution to manage structured data in various formats, whether in small projects, applications, or even plugins for platforms like PocketMine.


Una librería de PHP flexible y ligera para manejar bases de datos en formato YAML, JSON, y SQLite. Ideal para desarrolladores que necesiten una solución simple para gestionar datos estructurados en distintos formatos, ya sea en pequeños proyectos, aplicaciones, o incluso en plugins para plataformas como PocketMine.


🎯 Features | Características



🚀 Installation | Instalación

Using Composer | Usando Composer

  1. Make sure you have Composer installed. If not, install it from here.
  2. Run the following command in your project root:

  3. Composer will download the library and autoload the classes. You're ready to go!

  1. Asegúrate de tener Composer instalado. Si no lo tienes, puedes instalarlo desde aquí.
  2. Ejecuta el siguiente comando en la raíz de tu proyecto:

  3. ¡Composer descargará la librería y autogenerará el autoload de clases! Ya estás listo para comenzar.

🛠️ Manual Installation | Instalación Manual

  1. Download or clone the library repository.
  2. Include Composer's autoload file in your project:

  3. The library is now ready to use in your project.

  1. Descarga o clona el repositorio de la librería.
  2. Incluye el archivo de autoload de Composer en tu proyecto:

  3. La librería estará lista para usar en tu proyecto.

🧑‍💻 Basic Usage | Uso Básico

Database Initialization | Inicialización de la Base de Datos

To create a database instance, use the DatabaseFactory::create() method, which allows you to choose the storage type:


Para crear una instancia de la base de datos, utiliza el método DatabaseFactory::create(), que permite elegir el tipo de almacenamiento:



💾 Saving Data | Guardar Datos

To save data, use the set() method. You can define sections and keys to structure the information:


Para guardar datos en la base de datos, utiliza el método set(). Puedes definir secciones y claves para estructurar la información:



🔍 Retrieving Data | Obtener Datos

To retrieve saved data, use the get() method:


Para obtener un valor guardado, utiliza el método get():




🗑️ Deleting Data | Eliminar Datos

To delete a specific entry from the database, use the delete() method:


Si necesitas eliminar una entrada específica de la base de datos, usa el método delete():




🔐 Transactions (optional) | Transacciones (opcional)

If you enable cache when creating the database, you can use transactions to group several operations:


Si habilitas la caché al crear la base de datos, puedes usar transacciones para agrupar varias operaciones:



⚙️ Advanced Options | Opciones Avanzadas

💡 Using Cache | Uso de Caché

By default, the library uses cache to improve performance. This means data is loaded into memory and written to disk only when necessary. You can disable cache if you prefer to write directly to disk:


Por defecto, la librería utiliza caché para mejorar el rendimiento. Los datos se cargan en memoria y se escriben en disco solo cuando es necesario. Puedes desactivar la caché si prefieres escribir directamente en disco:



SQLite Support | Soporte para SQLite

In addition to YAML and JSON, you can use SQLite as a lightweight database for larger projects requiring SQL queries:


Además de YAML y JSON, puedes usar SQLite como una base de datos ligera para proyectos más grandes que requieren consultas SQL:



📌 Use Cases | Casos de Uso



🤝 Contributing | Contribuciones

Contributions are welcome! If you want to improve this library, feel free to submit pull requests or open an issue in the repository.


¡Las contribuciones son bienvenidas! Si deseas mejorar esta librería, puedes enviar pull requests o abrir un issue en el repositorio.


📝 Steps to Contribute | Pasos para Contribuir

  1. Clone the project:

  2. Create a new branch:

  3. Make your changes and submit a pull request.

  1. Clona el proyecto:

  2. Crea una nueva rama:

  3. Haz tus cambios y envía tu pull request.

📜 License | Licencia

This project is licensed under the Apache License 2.0. You can view the full license in the LICENSE file.



All versions of database with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nozell/database contains the following files

Loading the files please wait ....