{"id":22908859,"url":"https://github.com/ipunkt/multitenant","last_synced_at":"2025-04-01T09:59:12.833Z","repository":{"id":23185486,"uuid":"26541724","full_name":"ipunkt/multitenant","owner":"ipunkt","description":"NO SUPPORT ANYMORE. WILL BE DELETED ON THE END OF 2017.","archived":false,"fork":false,"pushed_at":"2014-11-12T16:00:34.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-07T05:27:37.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipunkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-12T15:15:31.000Z","updated_at":"2017-01-17T14:58:15.000Z","dependencies_parsed_at":"2022-08-21T19:10:48.058Z","dependency_job_id":null,"html_url":"https://github.com/ipunkt/multitenant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fmultitenant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fmultitenant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fmultitenant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fmultitenant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/multitenant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620260,"owners_count":20806722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T03:32:45.570Z","updated_at":"2025-04-01T09:59:12.804Z","avatar_url":"https://github.com/ipunkt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ipunkt/multitenant\n==================\n\nThe goal of this package is to make it easy to make your application multi-tenant aware with little to no code changes to\nyour actual application.\n\n# Concept\n\n- A user is member of one or more tenants.\n- after logging into a user with more than one tenant the user will be asked to choose the tenant he wants to use.\n- For each tenant he logs into the app will behave like the data belonging to this tenant is the only data in existence.\n- This process is hidden from the application and happens purely in the package.\n\n# Implementation\n\n- Deciding which Tenant the User wants to use will be done through a filter. This filter should be used for every route\n    a logged in User accesses.\n- Seperating data is done through setting up 2 different Database connections.  \n    - The first connection is untouched and is meant to access the User table and other Data which does not belong to a specific tenant.\n    - The second connection will transform based on the chosen tenant.  \n        The default transformation is adding a tenant-specific string to the table prefix  \n        This connection will only receive tenant-specific data. It is recommended to make this the default connection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fmultitenant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Fmultitenant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fmultitenant/lists"}