Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
d13aaa1e
Commit
d13aaa1e
authored
Nov 01, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added composer basic docs
parent
4c8a1179
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
composer.md
docs/guide/composer.md
+51
-0
index.md
docs/guide/index.md
+1
-0
No files found.
docs/guide/composer.md
0 → 100644
View file @
d13aaa1e
Composer
========
Yii2 uses Composer as its package manager. It is a PHP utility that allows you to automatically install libraries and
extensions keeping them up to date and handling dependencies.
Installing Composer
-------------------
Check the official guide for
[
linux
](
http://getcomposer.org/doc/00-intro.md#installation-nix
)
or
[
Windows
](
http://getcomposer.org/doc/00-intro.md#installation-windows
)
.
Adding more packages to your project
------------------------------------
After
[
installing an application
](
installing.md
)
you will find
`composer.json`
in the root directory of your project.
This file lists packages that your application uses. The part we're interested in is
`require`
section.
```
{
"require": {
"Michelf/php-markdown": ">=1.3",
"ezyang/htmlpurifier": ">=4.5.0"
}
}
```
Here you can specify package name and version. Additionally to Yii extensions you may check
[
packagist
](
http://packagist.org/
)
repository for general purpose PHP packages.
After packages are specified you can type either
```
php composer.phar install
```
or
```
php composer.phar update
```
depending if you're doing it for the first time or not. Then, after some waiting, packages will be installed and ready
to use. You don't need anything to be configured additionally.
See also
--------
-
[
Official Composer documentation
](
http://getcomposer.org
)
.
\ No newline at end of file
docs/guide/index.md
View file @
d13aaa1e
...
...
@@ -77,4 +77,5 @@ More
-
[
Performance Tuning
](
performance.md
)
-
[
Managing assets
](
assets.md
)
-
[
Testing
](
testing.md
)
-
[
Composer
](
composer.md
)
-
[
Upgrading from 1.1 to 2.0
](
upgrade-from-v1.md
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment