Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust license #75

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ecs-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Coding standard refactor
on:
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch: ~

jobs:
ecs-fix:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
branch: [ 'master' ]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3

- name: Composer install
run: composer install --no-interaction --no-scripts

- name: Run ECS
run: |
vendor/bin/ecs check src --fix --config ecs.php

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: '[CS] Refactor'
author: DACHCOM Bot <[email protected]>
title: '[CS] Refactor'
body: |
This PR has been generated automatically to fix code-styles
labels: |
Enhancement
branch: coding-standard/refactor-${{ matrix.branch }}
delete-branch: true
base: ${{ matrix.branch }}
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ atlassian-ide-plugin.xml
.project
ehthumbs.db
Thumbs.db
Vagrantfile
.vagrant
php-cgi.core
.sass-cache
/vendor/
/composer.lock
20 changes: 14 additions & 6 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# License
Copyright (C) 2024 DACHCOM.DIGITAL
Copyright (C) DACHCOM.DIGITAL

This software is available under the GNU General Public License version 3 (GPLv3).
This software is available under two different licenses:
* GNU General Public License version 3 (GPLv3) as Pimcore Community Edition
* DACHCOM Commercial License (DCL)

### GNU General Public License version 3 (GPLv3)
If you decide to choose the GPLv3 license, you must comply with the following terms:
The default News Bundle license, without a valid DACHCOM Commercial License agreement, is the Open-Source GPLv3 license.

## GNU General Public License version 3 (GPLv3)
If you decide to choose the GPLv3 license, you must comply with the following terms:

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -13,10 +17,14 @@ the Free Software Foundation, either version 3 of the License, or

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

[GNU General Public License](lhttps://www.gnu.org/licenses/gpl-3.0.en.html)
## DACHCOM Commercial License (DCL)
Alternatively, commercial and supported versions of the program - also known as
Commercial Distributions - must be used in accordance with the terms and conditions
contained in a separate written agreement between you and DACHCOM.DIGITAL AG.
For more information about the News Bundle Commercial License (DCL) please contact [email protected].
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Pimcore News
[![Software License](https://img.shields.io/badge/license-GPLv3-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Software License](https://img.shields.io/badge/license-DCL-white.svg?style=flat-square&color=%23ff5c5c)](LICENSE.md)

Pimcore News Bundle. Generate simple [custom entry types](docs/20_EntryTypes.md) like Events, Press or Event.

## Requirements
Expand All @@ -8,7 +11,7 @@ Pimcore News Bundle. Generate simple [custom entry types](docs/20_EntryTypes.md)

```json
"require" : {
"dachcom-digital/news" : "~4.0.0",
"dachcom-digital/news" : "~4.1.0",
}
```

Expand Down Expand Up @@ -36,12 +39,12 @@ Pimcore News Bundle. Generate simple [custom entry types](docs/20_EntryTypes.md)
- [The Amazing Entry Types](./docs/20_EntryTypes.md)
- [Presets](./docs/30_Presets.md) (new!)

## Upgrade Info
Before updating, please [check our upgrade notes!](UPGRADE.md)

## License
**DACHCOM.DIGITAL AG**, Löwenhofstrasse 15, 9424 Rheineck, Schweiz
[dachcom.com](https://www.dachcom.com), [email protected]
Copyright © 2024 DACHCOM.DIGITAL. All rights reserved.
Copyright © 2025 DACHCOM.DIGITAL. All rights reserved.

For licensing details please visit [LICENSE.md](LICENSE.md)

## Upgrade Info
Before updating, please [check our upgrade notes!](UPGRADE.md)
For licensing details please visit [LICENSE.md](LICENSE.md)
3 changes: 2 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Upgrade Notes

---
## 4.1.0
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added

## 4.0.2
- [BUGFIX] remove `o_`-Prefixes for object columns [#71](https://github.com/dachcom-digital/pimcore-news/issues/71)
Expand Down
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "dachcom-digital/news",
"type": "pimcore-bundle",
"license": "GPL-3.0-or-later",
"license": [
"GPL-3.0-or-later",
"proprietary"
],
"description": "Pimcore News",
"keywords": ["pimcore", "news"],
"homepage": "https://github.com/dachcom-digital/pimcore-news",
"authors": [
{
"name": "DACHCOM.DIGITAL Stefan Hagspiel",
"email": "[email protected]",
"homepage": "http://www.dachcom.com/",
"homepage": "https://www.dachcom.com/",
"role": "Developer"
}
],
Expand All @@ -27,5 +30,8 @@
},
"require": {
"pimcore/pimcore": "^11.0"
},
"require-dev": {
"symplify/easy-coding-standard": "~12.2.0"
}
}
133 changes: 133 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?php

use PhpCsFixer\Fixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

$header = <<<HEADER
This source file is available under two different licenses:
- GNU General Public License version 3 (GPLv3)
- DACHCOM Commercial License (DCL)
Full copyright and license information is available in
LICENSE.md which is distributed with this source code.

@copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
@license GPLv3 and DCL
HEADER;

return ECSConfig::configure()
->withSets([SetList::CLEAN_CODE, SetList::PSR_12])
->withConfiguredRule(Fixer\Comment\HeaderCommentFixer::class, [
'header' => $header,
'comment_type' => 'comment'
])
->withConfiguredRule(Fixer\Basic\BracesFixer::class, [
'allow_single_line_closure' => true,
])
->withConfiguredRule(Fixer\Operator\ConcatSpaceFixer::class, [
'spacing' => 'one',
])
->withConfiguredRule(Fixer\Phpdoc\PhpdocAlignFixer::class, [
'tags' => ['method', 'param', 'property', 'return', 'throws', 'type', 'var'],
])
->withConfiguredRule(Fixer\Operator\BinaryOperatorSpacesFixer::class, [
'operators' => [
'=' => 'single_space',
'=>' => 'align',
]
])
->withConfiguredRule(Fixer\Operator\IncrementStyleFixer::class, [
'style' => 'post',
])
->withConfiguredRule(Fixer\ClassNotation\ClassAttributesSeparationFixer::class, [
'elements' => [
'const' => 'none',
'method' => 'one',
'property' => 'none',
'trait_import' => 'none'
],
])
->withConfiguredRule(Fixer\ClassNotation\ClassDefinitionFixer::class, [
'single_line' => true,
])
->withConfiguredRule(Fixer\Comment\SingleLineCommentStyleFixer::class, [
'comment_types' => ['hash'],
])
->withConfiguredRule(Fixer\Alias\NoMixedEchoPrintFixer::class, [
'use' => 'echo',
])
->withConfiguredRule(Fixer\Basic\NoTrailingCommaInSinglelineFixer::class, [
'elements' => ['array_destructuring']
])
->withConfiguredRule(Fixer\NamespaceNotation\BlankLinesBeforeNamespaceFixer::class, [
'min_line_breaks' => 2,
'max_line_breaks' => 2
])
->withConfiguredRule(Fixer\Whitespace\TypeDeclarationSpacesFixer::class, [
'elements' => ['function']
])
->withConfiguredRule(Fixer\Whitespace\NoExtraBlankLinesFixer::class, [
'tokens' => ['curly_brace_block', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'throw', 'use'],
])
->withRules([
Fixer\PhpTag\BlankLineAfterOpeningTagFixer::class,
Fixer\Operator\NewWithParenthesesFixer::class,
Fixer\Operator\UnaryOperatorSpacesFixer::class,
Fixer\Operator\ObjectOperatorWithoutWhitespaceFixer::class,
Fixer\Operator\StandardizeNotEqualsFixer::class,
Fixer\Operator\TernaryOperatorSpacesFixer::class,
Fixer\Operator\StandardizeIncrementFixer::class,
Fixer\Whitespace\BlankLineBeforeStatementFixer::class,
Fixer\Whitespace\ArrayIndentationFixer::class,
Fixer\Whitespace\NoSpacesAroundOffsetFixer::class,
Fixer\Whitespace\NoWhitespaceInBlankLineFixer::class,
Fixer\CastNotation\CastSpacesFixer::class,
Fixer\CastNotation\LowercaseCastFixer::class,
Fixer\CastNotation\NoShortBoolCastFixer::class,
Fixer\CastNotation\ShortScalarCastFixer::class,
Fixer\LanguageConstruct\DeclareEqualNormalizeFixer::class,
Fixer\ControlStructure\IncludeFixer::class,
Fixer\ControlStructure\NoUnneededControlParenthesesFixer::class,
Fixer\Casing\NativeFunctionCasingFixer::class,
Fixer\Casing\MagicConstantCasingFixer::class,
Fixer\Comment\NoEmptyCommentFixer::class,
Fixer\NamespaceNotation\NoLeadingNamespaceWhitespaceFixer::class,
Fixer\Semicolon\NoEmptyStatementFixer::class,
Fixer\Semicolon\NoSinglelineWhitespaceBeforeSemicolonsFixer::class,
Fixer\Semicolon\SpaceAfterSemicolonFixer::class,
Fixer\Semicolon\SemicolonAfterInstructionFixer::class,
Fixer\ArrayNotation\NoWhitespaceBeforeCommaInArrayFixer::class,
Fixer\ArrayNotation\NormalizeIndexBraceFixer::class,
Fixer\ArrayNotation\NoMultilineWhitespaceAroundDoubleArrowFixer::class,
Fixer\ArrayNotation\TrimArraySpacesFixer::class,
Fixer\ArrayNotation\WhitespaceAfterCommaInArrayFixer::class,
Fixer\Phpdoc\NoBlankLinesAfterPhpdocFixer::class,
Fixer\Phpdoc\PhpdocAnnotationWithoutDotFixer::class,
Fixer\Phpdoc\PhpdocIndentFixer::class,
Fixer\Phpdoc\PhpdocInlineTagNormalizerFixer::class,
Fixer\Phpdoc\PhpdocNoAccessFixer::class,
Fixer\Phpdoc\PhpdocNoEmptyReturnFixer::class,
Fixer\Phpdoc\PhpdocNoPackageFixer::class,
Fixer\Phpdoc\PhpdocNoUselessInheritdocFixer::class,
Fixer\Phpdoc\PhpdocReturnSelfReferenceFixer::class,
Fixer\Phpdoc\PhpdocScalarFixer::class,
Fixer\Phpdoc\PhpdocSingleLineVarSpacingFixer::class,
Fixer\Phpdoc\PhpdocSummaryFixer::class,
Fixer\Phpdoc\PhpdocToCommentFixer::class,
Fixer\Phpdoc\PhpdocTrimFixer::class,
Fixer\Phpdoc\PhpdocTypesFixer::class,
Fixer\Phpdoc\NoEmptyPhpdocFixer::class,
Fixer\Phpdoc\PhpdocSeparationFixer::class,
Fixer\Phpdoc\PhpdocVarWithoutNameFixer::class,
Fixer\Phpdoc\PhpdocNoAliasTagFixer::class,
Fixer\FunctionNotation\ReturnTypeDeclarationFixer::class,
Fixer\FunctionNotation\MethodArgumentSpaceFixer::class,
Fixer\StringNotation\SingleQuoteFixer::class,
Fixer\Import\NoUnusedImportsFixer::class,
Fixer\Import\NoLeadingImportSlashFixer::class,
Fixer\PhpUnit\PhpUnitFqcnAnnotationFixer::class,
Fixer\ClassNotation\NoBlankLinesAfterClassOpeningFixer::class,
Fixer\ClassNotation\SelfAccessorFixer::class,
Fixer\ClassNotation\SingleClassElementPerStatementFixer::class,
Fixer\ClassNotation\NoUnneededFinalMethodFixer::class
]);
Loading