diff --git a/LICENSE b/LICENSE index 126897c..5709b1a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,16 +1,108 @@ -European Union Public Licence -EUPL © European Union 2007, 2016 +Core PHP Framework Template +=========================== -This European Union Public Licence (the 'EUPL') applies to the Work (as defined below) -which is provided under the terms of this Licence. Any use of the Work, other than as -authorised under this Licence is prohibited (to the extent such use is covered by a right -of the copyright holder of the Work). +Copyright (c) 2026 Host UK / Snider -The Work is provided under the terms of this Licence when the Licensor (as defined below) -has placed the following notice immediately following the copyright notice for the Work: +This project uses a dual-licensing approach: -Licensed under the EUPL -or has expressed by any other means his willingness to license under the EUPL. +1. CORE FRAMEWORK CODE (EUPL-1.2) +--------------------------------- -For the full EUPL text, see: https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 +The Core PHP Framework packages (host-uk/core, host-uk/core-admin, +host-uk/core-api, host-uk/core-mcp) and any code within the `Core\` +namespace are licensed under the European Union Public Licence v1.2 +(EUPL-1.2). + +The full EUPL-1.2 license text is available at: +https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 + +And in the Core PHP Framework repository: +https://github.com/host-uk/core-php/blob/main/LICENSE + + +2. APPLICATION CODE EXCEPTION +----------------------------- + +As the copyright holder, we grant the following additional permission: + +Code you create within the following directories is EXEMPT from the +EUPL-1.2 copyleft requirements and may be licensed under any terms +you choose (including proprietary licenses): + + app/Mod/ - Your feature modules + app/Website/ - Your website/domain modules + app/Service/ - Your service classes + database/ - Your migrations, seeders, factories + resources/ - Your views, assets, translations + routes/ - Your route definitions + tests/ - Your test files + config/ - Your configuration files (except config/core.php) + +This exception applies ONLY to original code you create in these +directories. It does NOT apply to: + + - Modified copies of Core framework code + - Code that extends or overrides the `Core\` namespace + - Derivative works of the Core framework itself + + +3. CORE NAMESPACE MODIFICATIONS +------------------------------- + +If you create local overrides or extensions within the `Core\` namespace +(e.g., in `app/Core/`), those modifications ARE subject to EUPL-1.2 and +its copyleft requirements. + +We encourage you to submit such modifications as pull requests to: +https://github.com/host-uk/core-php + +This requirement constitutes the consideration for the license grant +herein. The Core PHP Framework is not provided without cost; rather, +the license fee is paid in kind through the contribution of improvements +to the community. By using this software, you acknowledge and agree that +modifications to the Core\ namespace shall be made available to the +community under the same terms, ensuring that all users benefit from +collective improvements. This reciprocal obligation is a fundamental +condition of the license grant and not merely a request. + + +4. SUMMARY +---------- + +┌─────────────────────────────────────────────────────────────────────┐ +│ Location │ License │ Copyleft Required? │ +├─────────────────────────────────────────────────────────────────────┤ +│ vendor/host-uk/* │ EUPL-1.2 │ Yes │ +│ app/Core/* │ EUPL-1.2 │ Yes (submit as PR) │ +│ Core\ namespace │ EUPL-1.2 │ Yes │ +├─────────────────────────────────────────────────────────────────────┤ +│ app/Mod/* │ Your choice │ No │ +│ app/Website/* │ Your choice │ No │ +│ app/Service/* │ Your choice │ No │ +│ database/* │ Your choice │ No │ +│ resources/* │ Your choice │ No │ +│ routes/* │ Your choice │ No │ +│ tests/* │ Your choice │ No │ +└─────────────────────────────────────────────────────────────────────┘ + + +5. WARRANTY DISCLAIMER +---------------------- + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +6. QUESTIONS +------------ + +If you have questions about licensing, contact: [your contact info] + +For the full EUPL-1.2 text, see: +https://github.com/host-uk/core-php/blob/main/LICENSE