guyasyou / Pure-Cookies-Notice

Cookies Notice allows once to notify users of anything, including the use of cookies (The Cookie Law Explained). Package for CMS Concrete5
https://www.concrete5.org/marketplace/addons/cookies-notice/
Other
1 stars 1 forks source link

Add composer.json #2

Closed mlocati closed 6 years ago

mlocati commented 6 years ago

What about adding support to install this package via composer?

All you have to do is:

For instance, it will be possible to do the following:

# Create a new concrete5 project
composer create-project concrete5/composer your_project_name

# Enter the project directory
cd your_project_name

# Install concrete5
./concrete/bin/concrete5 c5:install -i

# Download the Pure-Cookies-Notice package
composer require guyasyou/pure_cookies_notice

# Install Pure-Cookies-Notice package in concrete5
./concrete/bin/concrete5 c5:package-install pure_cookies_notice
mlocati commented 6 years ago

PS: here's a package of mine that can be installed with

composer require mlocati-concrete5-packages/vatcode_codicefiscale
guyasyou commented 6 years ago

I think it's unnecessary here...

mlocati commented 6 years ago

Do you mean that's unnecessary to be able to install your package with composer?

guyasyou commented 6 years ago

Yes, who needs it? I doubt that someone will do the package with this

mlocati commented 6 years ago

A lot of people are already doing this: for instance concrete5 has been installed 883 times using composer (see https://packagist.org/packages/concrete5/concrete5)

It's a great way to deploy projects: you don't have to keep copies of every package in a repository: simply running composer install or composer update let's you install/update packages.

And it doesn't cost you anything: everything is automatic...

mlocati commented 6 years ago

Ups, concrete5 has been installed 4477 times using composer (see https://packagist.org/packages/concrete5/core )

guyasyou commented 6 years ago

... maybe, i will do it later

mlocati commented 6 years ago

Great, thanks!