Download the PHP package sanicode/elastik-tenancy without Composer

On this page you can find all versions of the php package sanicode/elastik-tenancy. 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 elastik-tenancy

Laravel Logo Jetstream Logo

Build Status Total Downloads Latest Stable Version License

About Elastik Tenancy

Laravel Jetstream is a robust application scaffolding for Laravel, providing essential features such as user authentication, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management. Elastik Tenancy combined with a TenancyForLaravel (a package by Stancl that provides multi-tenancy support for Laravel applications), allows you to build a powerful, multi-tenant SaaS application with user authentication, team management, and other features provided by Jetstream, all while keeping tenant data and configuration isolated.

Overview

Benefits of Combining Jetstream and TenancyForLaravel:

Scalability: The combined setup allows you to scale your application to support multiple tenants efficiently. Feature-Rich: You get the best of both worlds—Jetstream's user management features and TenancyForLaravel’s robust multi-tenancy support.

Flexibility: The architecture can be adapted to various use cases, from small SaaS applications to large enterprise solutions.

Integrating Multitenancy with Laravel Jetstream

Tenant Identification:

User Authentication:

Database Separation:

Middleware:

Routes and Controllers:

Elastik Tenancy Features

Installation

To get started with this project, follow these steps:

1. Clone the Repository

2. Alternative Install with Composer

3. Install Dependencies

4. Next, be sure to compile your assets

5. Set Up Environtment Variables

Copy the .env.example file to .env and configure the necessary environment variables, including your database connection and tenant identification method.

6. Generate Application Key

[!IMPORTANT] If you used the Laravel installer and chose sqlite as your database, the migrations may have already been run. In which case, you're good to go 🎉 Otherwords you'll need to connect a db and run this command 👇

7. Run database migrations

8. Configure Tenants

If you're using subdomains or multiple databases, ensure that your server is configured correctly to handle tenant routing. This might involve setting up wildcard subdomains or configuring additional databases.

9. Serve the Application

10. Open your first page in browser

Screenshot 2024-08-10 at 12 33 56

Usage

After setting up the project, you can register new tenant with Domain/Subdomain field in register form and log in as a user. Each user domain/subdomain will be associated with a specific tenant, and all operations will be tenant-scoped. For the basic usage you can input subdomain name without dot[.] added for suffix, for the example : tenant1, tenant2, etc.

register-page

Example Routes:

Visit your application homepage and you should be good to go 🤘

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an Issue.

License

The Elastik Tenancy is open-sourced software licensed under the MIT license.

Acknowledgements


All versions of elastik-tenancy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.9
laravel/jetstream Version ^5.1
laravel/sanctum Version ^4.0
laravel/tinker Version ^2.9
livewire/livewire Version ^3.0
predis/predis Version ^2.2
stancl/tenancy Version ^3.8
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 sanicode/elastik-tenancy contains the following files

Loading the files please wait ....