Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Create composer.json #353

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Create composer.json #353

wants to merge 3 commits into from

Conversation

EvilFreelancer
Copy link

Hi to all!
I would like to add this project into Packagist repository.

@nelson6e65
Copy link
Contributor

nelson6e65 commented Jul 24, 2016

Composer? Because Composer is a "dependency Manager for PHP", there is better methods to install, update and manage your static resources, like Bower (a package manager for the web).

And it's available via:

bower install bootstrap-validator --save

@EvilFreelancer
Copy link
Author

@nelson6e65 yep, you are right. but not everyone uses only bower, some people like composer and some projects may depend on css/js.

On debian or centos if you want to install bower first you need to install the npm package, npm is a part of nodejs project, and all this are not needed on pure php/perl servers (also some hosting dont have a bower and npm), because any extra software on the production server is a potential vulnerability.

P.S. The "Twitter Bootstrap" project is available via bower and composer distribution systems https://github.com/twbs/bootstrap

@nelson6e65
Copy link
Contributor

nelson6e65 commented Aug 11, 2016

Oh... I never installed static resources with composer... You can customize where to put the .css, .js and else files?

Edit: I figured out: Runing composer require in another directory.

@nelson6e65
Copy link
Contributor

nelson6e65 commented Aug 11, 2016

The bad on this is that, using composer, does not installs bootstrap dependencies automatically (jQuery)... 😟

@PavelRykov Maybe if you include those dependencies directly in your composer.json#21 it should work! This should complete this pull request. ☺️

Edit: Oh! Check this: https://github.com/components/bootstrap

@EvilFreelancer
Copy link
Author

@nelson6e65 I added depending the Bootstrap and (just in case) JQuery, copied keywords from bower.json and post-install path now "assets" dir. Hope this updates should help 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants