Example composer based concrete5 package
Switch branches/tags
Nothing to show
Clone or download
KorvinSzanto Merge pull request #2 from a3020/patch-1
Use 'composer require' instead of 'composer install'
Latest commit 6fa6aa6 Aug 2, 2018
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
composer.json
composer.lock
controller.php

README.md

Sample Composer Package

This project is a concrete5 sample package that is powered entirely by composer.

To install this package on a composer based concrete5 site, make sure you already have composer/installers then run:

$ composer require concrete5/sample_composer_package

Then install the package

$ ./vendor/bin/concrete5 c5:package-install sample_composer_package

Using this project as a skeleton

First, use composer create-project to begin your own package project.

$ composer create-project concrete5/sample_composer_package

Once this is done, modify the composer.json to have information about your project and an updated name. Then set up your VCS

git init
git remote add origin git@github.com/youraccount/yourrepository
git add .
git commit -m "Initial Commit"
git push

Finally, add your git repository to a composer repository. And that's it!