netgen / layouts-core
Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.
Installs: 74 549
Dependents: 6
Suggesters: 0
Security: 0
Stars: 36
Watchers: 5
Forks: 6
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^7.4 || ^8.1
- ext-intl: *
- ext-mbstring: *
- doctrine/collections: ^1.8 || ^2.1
- doctrine/dbal: ^2.13 || ^3.5
- doctrine/doctrine-bundle: ^1.12 || ^2.7
- doctrine/doctrine-migrations-bundle: ^2.2 || ^3.2
- egulias/email-validator: ^2.1.25 || ^3.2
- emodric/twig-package-versions: ^1.1
- ezyang/htmlpurifier: ^4.16
- friendsofsymfony/http-cache-bundle: ^1.3.16 || ^2.11
- jean85/pretty-package-versions: ^1.6 || ^2.0
- knplabs/knp-menu-bundle: ^2.3 || ^3.2
- netgen/content-browser: ^1.4
- netgen/layouts-ui: ~1.4.0
- nikolaposa/version: ^4.1
- pagerfanta/pagerfanta: ^2.7 || ^3.6
- ramsey/uuid: ^3.9 || ^4.2
- sensio/framework-extra-bundle: ^5.4 || ^6.2
- swaggest/json-schema: ^0.12.41
- symfony/asset: ^3.4.47 || ^5.4 || ^6.2
- symfony/config: ^3.4.47 || ^5.4 || ^6.2
- symfony/console: ^3.4.47 || ^5.4 || ^6.2
- symfony/dependency-injection: ^3.4.47 || ^5.4 || ^6.2
- symfony/deprecation-contracts: ^2.5 || ^3.2
- symfony/doctrine-bridge: ^3.4.47 || ^5.4 || ^6.2
- symfony/event-dispatcher: ^3.4.47 || ^5.4 || ^6.2
- symfony/expression-language: ^3.4.47 || ^5.4 || ^6.2
- symfony/form: ^3.4.47 || ^5.4 || ^6.2
- symfony/framework-bundle: ^3.4.47 || ^5.4 || ^6.2
- symfony/http-client: ^5.4 || ^6.2
- symfony/http-foundation: ^3.4.47 || ^5.4 || ^6.2
- symfony/http-kernel: ^3.4.47 || ^5.4 || ^6.2
- symfony/intl: ^3.4.47 || ^5.4 || ^6.2
- symfony/monolog-bundle: ^3.6
- symfony/options-resolver: ^3.4.47 || ^5.4 || ^6.2
- symfony/polyfill-php80: ^1.27
- symfony/property-access: ^3.4.47 || ^5.4 || ^6.2
- symfony/routing: ^3.4.47 || ^5.4 || ^6.2
- symfony/security-bundle: ^3.4.47 || ^5.4 || ^6.2
- symfony/security-core: ^3.4.47 || ^5.4 || ^6.2
- symfony/security-csrf: ^3.4.47 || ^5.4 || ^6.2
- symfony/serializer: ^3.4.47 || ^5.4 || ^6.2
- symfony/string: ^5.4 || ^6.2
- symfony/translation: ^3.4.47 || ^5.4 || ^6.2
- symfony/twig-bridge: ^3.4.47 || ^5.4 || ^6.2
- symfony/twig-bundle: ^3.4.47 || ^5.4 || ^6.2
- symfony/validator: ^3.4.47 || ^5.4 || ^6.2
- symfony/yaml: ^3.4.47 || ^5.4 || ^6.2
- twig/twig: ^2.15 || ^3.9
- xemlock/htmlpurifier-html5: >=0.1.11, <1.0
Requires (Dev)
- behat/behat: ^3.7
- behat/mink: ^1.9
- behat/mink-selenium2-driver: ^1.6
- coduo/php-matcher: ^3.2 || ^6.0
- friends-of-behat/mink-browserkit-driver: ^1.3
- friends-of-behat/mink-extension: ^2.5
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1@beta
- friends-of-behat/variadic-extension: ^1.3
- lchrusciel/api-test-case: ^4.1 || ^5.2
- matthiasnoback/symfony-config-test: ^4.2 || ^5.0
- matthiasnoback/symfony-dependency-injection-test: ^4.2 || ^5.0
- netgen/layouts-coding-standard: ^2.0
- netgen/layouts-standard: ~1.4.0
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.4
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^8.5 || ^9.6 || ^10.1
- sebastian/diff: ^3.0 || ^4.0 || ^5.0
- symfony/phpunit-bridge: ^6.2
- symfony/runtime: ^5.4 || ^6.2
- symfony/var-dumper: ^3.4.47 || ^5.4 || ^6.2
- vimeo/psalm: ^4.30 || ^5.4
- webmozart/assert: ^1.11
Conflicts
- composer/package-versions-deprecated: <1.11.99
- ocramius/proxy-manager: <2.1
- symfony/proxy-manager-bridge: <3.4.47
- dev-master / 1.4.x-dev
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0.4
- 1.3.0.3
- 1.3.0.2
- 1.3.0.1
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0.2
- 0.12.0.1
- 0.12.0
This package is auto-updated.
Last update: 2024-11-06 14:23:38 UTC
README
This repository is the core/kernel of Netgen Layouts. It is not to be installed as a standalone package. Instead, read the installation instructions on how to install the complete Netgen Layouts to your Symfony based app.
For developers
If you intend to develop Netgen Layouts, fix a bug, send a pull request and so on, please read the following sections on how to run various test suites.
Running tests requires that you have complete vendors installed, so run
composer install
before running the tests.
Unit tests
Run the unit tests by calling composer test
from the repo root:
$ composer test
This will use an in memory SQLite database.
You can also run unit tests on a real database. Create an empty MySQL database and run the tests with:
$ DATABASE=mysql://root@localhost/nglayouts composer test
where mysql://root@localhost/nglayouts
is a DSN to your MySQL database.
You can also use PostgreSQL:
$ DATABASE=pgsql://user:pass@localhost/nglayouts composer test
Layout editing app REST API tests
Run the REST API tests for layout editing app by calling composer test-api
from the repo root:
$ composer test-api
Just as with unit tests, this will use a temporary SQLite database.
You can also use the DATABASE
environment variable to run the tests
with a MySQL or PostgreSQL database:
$ DATABASE=mysql://root@localhost/nglayouts composer test-api
Behat tests
Some parts of the administration interface are covered with Behat tests. These
tests use Chrome WebDriver to run. Before running tests, you need to install
the Chrome WebDriver and run it, together with the Symfony CLI used for testing.
There is a convenient shell script tests/prepare_behat.sh
, which will download
the latest Chrome WebDriver and Symfony CLI and start the test web server.
To run the tests, just execute the following:
$ composer behat
This will run the tests with the Chrome UI visible.
To run the tests without the Chrome UI and save some seconds, you can use:
$ chrome behat-headless
Static analysis
All code is statically analysed with PHPStan and Psalm. Make sure that both tools give the OK for the entire codebase after your changes. Run the following commands to run PHPStan and Psalm for the library/bundle code and for tests code, respectively:
$ composer phpstan
$ composer phpstan-tests
$ composer psalm
Coding standards
This repo uses PHP CS Fixer and rules defined in .php-cs-fixer.php
file to enforce coding
standards. Please check the code for any CS violations before submitting patches:
$ php-cs-fixer fix