Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T13:07:35.000Z (8 months ago)
- Last Synced: 2024-10-15T01:21:52.444Z (about 1 month ago)
- Topics: php74, symfony, symfony4
- Language: PHP
- Size: 2.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SaaS Provider bundle
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Fluxter/SaasProviderBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Fluxter/SaasProviderBundle/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/Fluxter/SaasProviderBundle/badges/build.png?b=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
```