-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPHP_Notes.txt
More file actions
41 lines (30 loc) · 883 Bytes
/
PHP_Notes.txt
File metadata and controls
41 lines (30 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---------
PHP Notes
---------
Composer
--------
https://getcomposer.org/
Description:
Composer is an application-level package manager for the PHP programming
language that provides a standard format for managing dependencies of PHP
software and required libraries
Composer is a tool for dependency management in PHP. It allows you to declare
the libraries your project depends on and it will manage (install/update) them
for you.
Composer Installation
---------------------
$ brew install composer
Package Installation
--------------------
# find packages
$ composer search PACKAGE
# package information
$ composer info PACKAGE
# OR
$ composer show PACKAGE
# update composer.json
$ composer require VENDOR/PACKAGE[:VERSION]
# install packages and update composer.lock
# if composer.lock does not exist, use composer.json and then create
$ composer install
tags: php