https://github.com/fluxter/symfony-saas-provider-bundle
A SaaS provider package for symfony
https://github.com/fluxter/symfony-saas-provider-bundle
php74 symfony symfony4
Last synced: 18 days ago
JSON representation
A SaaS provider package for symfony
- Host: GitHub
- URL: https://github.com/fluxter/symfony-saas-provider-bundle
- Owner: Fluxter
- License: mit
- Created: 2019-09-12T18:52:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T13:07:35.000Z (over 1 year ago)
- Last Synced: 2025-06-17T11:07:19.641Z (28 days ago)
- Topics: php74, symfony, symfony4
- Language: PHP
- Size: 2.02 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SaaS Provider bundle
[](https://scrutinizer-ci.com/g/Fluxter/SaasProviderBundle/?branch=master) [](https://scrutinizer-ci.com/g/Fluxter/SaasProviderBundle/build-status/master)
The corresponding provider bundle for the Fluxter SaaS Consumer bundle
## How to install
```bash
composer require fluxter/saas-provider-bundle
```## How to implement
1. Create a client entity, that implements the TenantInterface
1. Create a Client Parameter entity, that implements SaasClientParameterInterface
1. Configure the bundle
```yaml
# config/packages/saas_provider.yaml
saas_provider:
client_entity: App\Entity\User
global_url: app.yourdomain.tld
```
1. Configure your firewall to the correct voter mode
```yaml
# config/packages/security.yaml
security:
access_decision_manager:
strategy: unanimous
allow_if_all_abstain: false
```