11. Battle of Library Management
1. Googling any packages
2. Download It
3. Extract It
4. Need Update? Repeat (huff)
1. List any packages in your
composer.json
2. Run `composer install` in cli
3. Need update? Just run:
`composer update`
Composer Manual
Jaman Now Jaman Byen
18. (^) Caret
● ^4.1.3 (most used) means
>=4.1.3 < 5.0.0
● ^4.1 means >=4.1.0 < 5.0.0
● ^0.4 means >=0.4.0 < 0.5.0
● ^4 means >=4.0.0 < 5.0.0 which
is the same as ~4 and 4.*.
(~) Tilde
● ~4.1.3 means >=4.1.3 < 4.2.0
● ~4.1 means >=4.1.0 < 5.0.0
(most used),
● ~0.4 means >=0.4.0 < 1.0.0
● ~4 means >=4.0.0 < 5.0.0.
Tilde and Caret is just Next Significant Release Operators
20. Kuat dilakoni lek
ra kuat ditinggal
ngopi
Tetep ngoding senajan
ngoding iku angel.
21. Before you go?
● Do you understand GIT?
● Have you familiar with PSR-2 Coding Standard?
● Have you familiar with PSR-4 Autoloader?
● Have you read Composer Documentation?
● Have you read semver.org?
22. Or if u need boilerplate?
https://github.com/thephpleague/skeleton
You can start Package Development from scratch
23. Create a useful package
http://phppackagechecklist.com
and follow Package Development best practice here:
26. Kesimpulan
● Programmer Jaman now harus bisa nge-GIT
● Selalu gunakan PSR-2 Coding Standard & PSR-4 Autoloader
● Anda dapat memulai package development dengan boilerplate ini
https://github.com/thephpleague/skeleton
● Pastikan package yg kalian buat sesuai dengan panduan disini:
http://phppackagechecklist.com
● Be Confident. Done is better than perfect.