Virdafils is a file storage driver for Laravel Framework. This driver allows the developer to treat directories/files as records in a database.
Some parts of the repository was based from plugin
branch of Web Template.
- Put the following information in your
composer.json
:{ // Your specified properties like name, type, license, etc... "require": { // other dependencies here... "kennethtrecy/virdafils": "^0.4.0" }, // Your other properties like require-dev, autoload, etc... // Add the repository to instruct where to find the package "repositories": [ { "type": "composer", "url": "https://raw.githubusercontent.com/KennethTrecy/PHP_packages/master" } ], "config": { // Other configurations here... "secure-http": true } }
- Run
composer install
- Run
php artisan vendor:publish --provider="\KennethTrecy\Virdafils\VirdafilsServiceProvider"
orphp artisan vendor:publish --provider="\\KennethTrecy\\Virdafils\\VirdafilsServiceProvider"
depending on your OS. - Run
php artisan migrate:fresh
- Add the disk configuration to your
config/filesystems.php
:return [ // other options... "disks" => [ // other disks... // Add the disk configuration in the array "virdafils" => [ "driver" => "virdafils", "root" => "/", "visibility" => "private" ] ] // other options... ]
- (Optional) Specify the default disk in your
.env
:FILESYSTEM_DRIVER=virdafils
You can generate the documentation offline using phpDocumentor.
- Choose one of the installation options of phpDocumentor.
- Run
git clone [email protected]:KennethTrecy/virdafils.git
. - Run
cd virdafils
. - Run
php phpDocumentor.phar
orphpDocumentor
, or other commands depending on your installation option. - Visit the hidden_docs/index.html in your preferred browser.
If you want to contribute, the repository should be initialized to adhere in Conventional Commits specification for organize commits and automated generation of change log.
- Node.js and NPM
- pnpm (optional)
By running the command below, all your commits will be linted to follow the Conventional Commits specification.
$ npm install
Or if you have installed pnpm, run the following command:
$ pnpm install
To generate the change log automatically, run the command below:
$ npx changelogen --from=[tag name or branch name or commit itself] --to=master
If you found a bug, please file an issue.
Current version of this package is compatible with Laravel Framework version 9 and above only.
Use this package's v0.2.1 is compatible with version 8. However, there are may still be bugs.
PRs are welcome!
The repository is licensed under MIT.
Read the contributing guide for different ways to contribute in the project.
Virdafils was created by Kenneth Trecy Tobias.