eureka / component-web
Basic component for website: Breadcrumb, Menu, Meta & Notification
Requires
- php: 8.1.*||8.2.*||8.3.*
- ext-mbstring: *
- psr/cache: ^1.0||^2.0||^3.0
- psr/http-message: ^1.0||^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.51.0
- maglnet/composer-require-checker: ^4.7.1
- phpstan/phpstan: ^1.10.60
- phpstan/phpstan-phpunit: ^1.3.16
- phpstan/phpstan-strict-rules: ^1.5.2
- phpunit/phpcov: ^9.0.2
- phpunit/phpunit: ^10.5.12
- symfony/cache: ^6.4.4||^7.0
This package is auto-updated.
Last update: 2024-11-12 18:22:49 UTC
README
Description
Provide some utilities to website application:
- Breadcrumb
- Carousel
- Menu
- Meta
- Notification
- Session
Composer
composer require "eureka/component-password"
Contributing
See the CONTRIBUTING file.
Install / update project
You can install project with the following command:
make install
And update with the following command:
make update
NB: For the components, the composer.lock
file is not committed.
Testing & CI (Continuous Integration)
Tests
You can run unit tests (with coverage) on your side with following command:
make tests
You can run integration tests (without coverage) on your side with following command:
make integration
For prettier output (but without coverage), you can use the following command:
make testdox # run tests without coverage reports but with prettified output
Code Style
You also can run code style check with following commands:
make phpcs
You also can run code style fixes with following commands:
make phpcsf
Check for missing explicit dependencies
You can check if any explicit dependency is missing with the following command:
make deps
Static Analysis
To perform a static analyze of your code (with phpstan, lvl 9 at default), you can use the following command:
make analyse
To ensure you code still compatible with current supported version at Deezer and futures versions of php, you need to run the following commands (both are required for full support):
Minimal supported version:
make php81compatibility
Maximal supported version:
make php83compatibility
CI Simulation
And the last "helper" commands, you can run before commit and push, is:
make ci
License
This project is currently under The MIT License (MIT). See LICENCE file for more information.