slashworks / contao-social-media-bundle
Social media bundle for contao 4
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.0 || ^8.0
- contao/core-bundle: ^4.4
- symfony/config: ^4.4 || ^5.1
- symfony/dependency-injection: ^4.4 || ^5.1
- symfony/http-kernel: ^4.4 || ^5.1
Requires (Dev)
- contao/easy-coding-standard: ^2.0
- contao/manager-plugin: ^2.0
- phpunit/phpunit: ^8.4
- symfony/phpunit-bridge: ^4.4 || ^5.1
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.
You can use the skeleton bundle as basis for your own Contao bundle.
Install
Download the skeleton bundle:
wget https://github.com/contao/skeleton-bundle/archive/master.zip
unzip master.zip
mv skeleton-bundle-master [package name]
cd [package name]
Customize
First adjust the following files:
ecs.yaml
composer.json
phpunit.xml.dist
README.md
Then rename the following files and/or the references to SkeletonBundle
in
the following files:
src/ContaoManager/Plugin.php
src/DependencyInjection/ContaoSkeletonExtension.php
src/ContaoSkeletonBundle.php
tests/ContaoSkeletonBundleTest.php
Finally add your custom classes and resources. Make sure to register your services
within src/Resources/config/services.yml
. Also make sure to
adjust the Contao Manager Plugin (and the dependencies within the composer.json
)
accordingly, if your bundle makes adjustments to other bundles (e.g. adjustments
to a DCA of other bundles).
Release
Run the PHP-CS-Fixer and the unit test before you release your bundle:
vendor/bin/ecs check src/ tests/ --fix vendor/bin/phpunit