https://github.com/concretecms/sample_composer_package
Example composer based Concrete CMS package
https://github.com/concretecms/sample_composer_package
Last synced: about 1 year ago
JSON representation
Example composer based Concrete CMS package
- Host: GitHub
- URL: https://github.com/concretecms/sample_composer_package
- Owner: concretecms
- Created: 2017-07-25T01:19:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-19T00:52:28.000Z (about 4 years ago)
- Last Synced: 2025-03-26T23:16:45.536Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 7
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Composer Package
This project is a concrete5 sample package that is powered entirely by [composer](https://getcomposer.org).
To install this package on a [composer based concrete5](https://github.com/concrete5/composer) site, make sure you already have `composer/installers` then run:
```sh
$ composer require concrete5/sample_composer_package
```
Then install the package
```sh
$ ./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.
```php
$ 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
```php
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](https://packagist.org/). And that's it!