Skip to content

Commit

Permalink
Pimcore 10 & 11 update (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
mporembskicf authored Dec 15, 2023
1 parent 13b6e5b commit 625d699
Show file tree
Hide file tree
Showing 16 changed files with 42,765 additions and 105 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
tmp/
.env
composer.lock
vendor/
.phpunit.result.cache
20 changes: 13 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
],
"require": {
"php": ">=8.0",
"pimcore/pimcore": "^10"
"pimcore/pimcore": ">=10.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"symfony/phpunit-bridge": "^4.2",
"phpunit/phpunit": "^9.5",
"symfony/phpunit-bridge": ">=4.2",
"divante-ltd/pimcore-coding-standards": "^0.1",
"phpmd/phpmd": "^2.6",
"sebastian/phpcpd": "^4.1",
"block8/php-docblock-checker": "^1.10",
"phploc/phploc": "^4.0.0"
"phpmd/phpmd": ">=2.0",
"sebastian/phpcpd": ">=6.0",
"phploc/phploc": ">=4.0",
"codeception/codeception": ">=4.2.2"
},
"autoload": {
"psr-4": {
Expand All @@ -45,5 +45,11 @@
"PimcoreDevkitBundle\\PimcoreDevkitBundle"
]
}
},
"config": {
"allow-plugins": {
"kylekatarnls/update-helper": true,
"ocramius/package-versions": true
}
}
}
100 changes: 27 additions & 73 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,48 @@
# Pimcore DevKit
[![Analysis Actions](https://github.com/DivanteLtd/pimcore-devkit/workflows/Analysis/badge.svg?branch=master)](https://github.com/DivanteLtd/pimcore-devkit/actions)
[![Tests Actions](https://github.com/DivanteLtd/pimcore-devkit/workflows/Tests/badge.svg?branch=master)](https://github.com/DivanteLtd/pimcore-devkit/actions)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/867f5904381d4e3a86bf33f2b5a99401)](https://www.codacy.com/app/Divante/pimcore-devkit?utm_source=github.com&utm_medium=referral&utm_content=DivanteLtd/pimcore-devkit&utm_campaign=Badge_Grade)
[![Latest Stable Version](https://poser.pugx.org/divanteltd/pimcoredevkit/v/stable)](https://packagist.org/packages/divanteltd/pimcoredevkit)
[![Total Downloads](https://poser.pugx.org/divanteltd/pimcoredevkit/downloads)](https://packagist.org/packages/divanteltd/pimcoredevkit)
[![License](https://poser.pugx.org/divanteltd/pimcoredevkit/license)](https://packagist.org/packages/divanteltd/pimcoredevkit)

Pimcore DevKit is a set of tools that helps developing Pimcore applications. It is intended to wrap Pimcore classess
to enable easy use of them.
Pimcore DevKit is a set of tools that helps developing Pimcore applications. It is intended to wrap Pimcore classess to enable easy use of them.

**Table of Contents**

- [Pimcore DevKit](#pimcore-devkit)
- [Compatibility](#compatibility)
- [Installing/Getting started](#installinggetting-started)
- [Features](#features)
- [Commands](#commands)
- [WYSIWYG with image metadata](#wysiwyg)
- [Contributing](#contributing)
- [Licensing](#licensing)
- [Standards & Code Quality](#standards--code-quality)
- [About Authors](#about-authors)
- [Compatibility](#compatibility)
- [Installing/Getting started](#installinggetting-started)
- [Features](#features)
- [Commands](#commands)
- [Developing](#developing)
- [Configuration](#configuration)
- [Contributing](#contributing)
- [Licensing](#licensing)
- [Standards & Code Quality](#standards--code-quality)
- [About Authors](#about-authors)

## Compatibility

This module is compatible with Pimcore 5.3.0 and higher.
This module is compatible with Pimcore 10.0.0 and higher.

## Installing/Getting started

```bash
composer require divanteltd/pimcoredevkit
```

## Features

### Commands

#### `devkit:asset:synchronize`

#### devkit:asset:synchronize
Synchronizes assets tree with filesystem changes

#### `devkit:delete_by_id`

#### devkit:delete_by_id
Deletes object, document, asset from given tree

#### `devkit:deletefolder`

#### devkit:deletefolder
Deletes folder from given tree

#### `devkit:classes:update`
## Developing

Updates class definition from json
when developing please make sure code is compatible with both Pimcore 10 and 11.

#### `devkit:bricks:update`
for test purpose there is `./scripts/test.sh` script, that check code for Pimcore 10.0, Pimcore 10.5 and Pimcore 11-Alpha7.

Updates bricks definition from json
## Configuration

### WYSIWYG with metadata

Standard Pimcore implementation does not use images metadata, when used in WYSIWYG.
To enable this feature, you can use brick `WYSIWYG with metadata` which provides also simple view file.
To use more sophisticated view (e. g. styled) you can create your own brick with a class derived from `\PimcoreDevkitBundle\Document\Areabrick\WysiwygWithMetadata`.
Example implementation:
```
namespace AppBundle\Document\Areabrick;
use PimcoreDevkitBundle\Document\Areabrick\WysiwygWithMetadata;
class Wysiwyg extends \PimcoreDevkitBundle\Document\Areabrick\WysiwygWithMetadata
{
public function getName()
{
return "WYSIWYG";
}
public function getIcon()
{
return '/bundles/pimcoreadmin/img/flat-color-icons/wysiwyg.svg';
}
public function getTemplateLocation()
{
return static::TEMPLATE_LOCATION_GLOBAL;
}
}
```
No configuration is needed.

## Contributing

Expand All @@ -96,21 +54,17 @@ GPL-3.0-or-later

## Standards & Code Quality

This module respects all Pimcore 5 code quality rules and our own PHPCS and PHPMD rulesets.
This module respects all Pimcore code quality rules and our own PHPCS and PHPMD rulesets.

## About Authors

![Divante-logo](http://divante.com/logo-HG.png "Divante")
![Divante-logo](http://www.divante.com/hs-fs/hubfs/Divante_BW.png "Divante")

We are a Software House from Europe, existing from 2008 and employing about 150 people. Our core competencies are built around Magento, Pimcore and bespoke software projects (we love Symfony3, Node.js, Angular, React, Vue.js). We specialize in sophisticated integration projects trying to connect hardcore IT with good product design and UX.

We are a Software House from Europe, existing from 2008 and employing about 150 people. Our core competencies are
built around Magento, Pimcore and bespoke software projects (we love Symfony3, Node.js, Angular, React, Vue.js).
We specialize in sophisticated integration projects trying to connect hardcore IT with good product design and UX.
We work for Clients like INTERSPORT, ING, Odlo, Onderdelenwinkel and CDP, the company that produced The Witcher game. We develop two projects: [Open Loyalty](http://www.openloyalty.io/ "Open Loyalty") - an open source loyalty program and [Vue.js Storefront](https://github.com/DivanteLtd/vue-storefront "Vue.js Storefront").

We work for Clients like INTERSPORT, ING, Odlo, Onderdelenwinkel and CDP, the company that produced The Witcher game.
We develop two projects: [Open Loyalty](http://www.openloyalty.io/ "Open Loyalty") - an open source loyalty program
and [Vue.js Storefront](https://github.com/DivanteLtd/vue-storefront "Vue.js Storefront").
We are part of the OEX Group which is listed on the Warsaw Stock Exchange. Our annual revenue has been growing at a minimum of about 30% year on year.

We are part of the OEX Group which is listed on the Warsaw Stock Exchange. Our annual revenue has been growing at a
minimum of about 30% year on year.
Visit our website [Divante.co](https://divante.co/ "Divante.co") for more information.

Visit our website [Divante.co](https://divante.com/ "Divante.com") for more information.
55 changes: 55 additions & 0 deletions scripts/composer/composer.10.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "divanteltd/pimcoredevkit",
"type": "pimcore-bundle",
"license": "GPL-3.0-or-later",
"description": "Devkit is a set of command-line tools helping you develop your Pimcore application.",
"keywords": [
"pimcore",
"pimcore-plugin"
],
"homepage": "https://divante.co",
"authors": [
{
"name": "Jakub Płaskonka",
"email": "[email protected]",
"homepage": "https://divante.co",
"role": "Developer"
},
{
"name": "Bruno Ramalho",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": ">=8.0.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/phpunit-bridge": "*",
"divante-ltd/pimcore-coding-standards": "*",
"phpmd/phpmd": "*",
"sebastian/phpcpd": ">=6.0.0",
"phploc/phploc": "*",
"pimcore/pimcore": "10.0.9",
"codeception/codeception": "4.2.2"
},
"autoload": {
"psr-4": {
"PimcoreDevkitBundle\\": "src/"
}
},
"extra": {
"pimcore": {
"bundles": [
"PimcoreDevkitBundle\\PimcoreDevkitBundle"
]
}
},
"config": {
"allow-plugins": {
"kylekatarnls/update-helper": true,
"ocramius/package-versions": true
}
}
}
Loading

0 comments on commit 625d699

Please sign in to comment.