Download the PHP package rakshitbharat/laravel-storage-with-database without Composer

On this page you can find all versions of the php package rakshitbharat/laravel-storage-with-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 laravel-storage-with-database

Laravel Storage with Database

Latest Version on Packagist Total Downloads

Laravel Storage with Database is a powerful package that provides a seamless way to store and retrieve text-based data using a database in Laravel. It offers a simple and intuitive API similar to Laravel's built-in Storage facade, making it easy to switch from file-based storage to database storage for your text-based data[1].

Features

Installation

You can install the package via Composer:

After installing the package, you need to publish the configuration file:

This will create a storage-database.php configuration file in your config directory. You can modify this file to customize the database connection, table name, and column names.

Next, run the database migration to create the necessary table:

Configuration

To use the database storage driver, you need to update your config/filesystems.php file. Add the following to the disks array:

Usage

Once the package is installed and configured, you can start using it to store and retrieve text-based data. You can use the Storage facade with the database disk to interact with the stored data.

Storing Data

To store data, you can use the put method:

Retrieving Data

To retrieve data, you can use the get method:

Checking Data Existence

To check if a key exists, you can use the exists method:

Deleting Data

To delete data, you can use the delete method:

Other Methods

The package supports other Laravel Storage methods like append, prepend, copy, move, size, lastModified, and more. Refer to the Laravel filesystem documentation for a complete list of available methods[1].

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

Laravel Storage with Database is open-sourced software licensed under the MIT license[1].


All versions of laravel-storage-with-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 rakshitbharat/laravel-storage-with-database contains the following files

Loading the files please wait ....