Download the PHP package noxterr/spirit without Composer
On this page you can find all versions of the php package noxterr/spirit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package spirit
B2 Spirit is a Laravel package designed to handle file transfers with Backblaze B2 Cloud Storage.
Features
- Seamless integration with Laravel
- Easy file uploads and downloads
- Secure file storage with Backblaze B2
Installation
To install the package, use Composer:
Setup migrations
Migrations aren't necessary for this package to work and all the functions and features will work even if you don't publish migration and execute them.
The simply migration will keep a table for logging on your database, which will log every single action that is carried out from this package.
This allows auditing and logging, in order to keep track of every action.
Even if you publish and run migrations, you need to enable the logging flow by adding a key in the .env
file.
Step 1: Export the migrations
Step 2: Run php artisan migrate
to run the migrations.
Step 3: Add key in your .env
for migrations
Set your Backblaze B2 credentials in the .env
file:
Usage
Uploading a File
Downloading a File
Handling respones
Every time an action is carried out on Spirit, a response is provided to the user under the form of a so-called ClassReturn.
This is an object that returns standardized data, making it easier to interface with your custom application.
The object is as follows
With this flow, you can always ensure to check errors like so if ($response->errcode != 0) { Error handling }
, so is easy to use.
Versioning and branches
Every branch will be named X.Y.Z
to match the version (meaning 2.0.0, 1.2.3 etc...). The latest branch is v.x (meaning 2.x, 3.x and so on).
Tag-wise, a tag that matches the version will be pushed on a new release under the same version schema with v appended upfront (meaning v1.2.4, v2.0.0)
For tags, if a version is, say, 3.x
, the corresponding tags can range from v3.0.0
to v3.9.9
, higher meaning latest version to require via composer
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
Support
For any issues, please open an issue on GitHub.
All versions of spirit with dependencies
illuminate/config Version ^10.48.4|^11.0.8
illuminate/support Version ^11.26
illuminate/console Version ^11.26
illuminate/database Version ^11.30
symfony/http-foundation Version ^7.1