Download the PHP package vidwan/tenant-buckets without Composer

On this page you can find all versions of the php package vidwan/tenant-buckets. 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 tenant-buckets

Provision S3 Buckets for each tenant.

Vidwan/Tenant-Buckets Latest Version on Packagist Tests Total Downloads

Automatically Provision AWS S3 Buckets for each tenant. It's an Extention for stancl/tenancy. For more details refer to TenancyForLaravel.

Concept

The concept is simple, to automatically provison a new AWS S3 bucket for tenant on registration and update the same on the central database's tenant table & data coloumn under tenant_bucket. Then using a bootstrapper updating the bucket in config filesystems.disks.s3.bucket during runtime when in Tenant's context and then reverting it back on central context.

Roadmap

Note: I have still not tested this package under production environment or with a real AWS S3 Bucket. I have only tested it under development environment using MinIO. I will update this after testing it on AWS S3 Bucket with an additional section on AWS IAM Policy Setup for creating the buckets using aws-sdk-php. Untill then, if you have tested, a PR is welcome.

Installation

You can install the package via composer:

Usage

1. Filesystem Config Setup

Ensure your S3 configuration has all the Key/Value pairs, as below:

File: config/filesystems.php

Using Minio for development? Make sure to update your .env with AWS_USE_PATH_STYLE_ENDPOINT=true

2. Tenancy Config

There are two parts in tenancy config to take care of.

Part a.

Add the TenantBucketBootstrapper::class to the tenancy config file under bootstrappers.

File: config/tenancy.php

Part b.

Make sure the s3 is commented in tenancy.filesystem.disks config or else it conflicts with the tenancy itself.

File: config/tenancy.php

3. Job Pipeline

Add Vidwan\TenantBuckets\Jobs\CreateTenantBucket & Vidwan\TenantBuckets\Jobs\DeleteTenantBucket in JobPipeline::make(). As the name suggests, the former Creates a New Bucket on Tenant Creation and the later Deletes it when a Tenant is being Deleted.

File: app/Providers/TenancyServiceProviders.php

Cheers! 🥳

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of tenant-buckets with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
aws/aws-sdk-php Version ~3.0
stancl/tenancy Version ^3.4
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 vidwan/tenant-buckets contains the following files

Loading the files please wait ....