BEGINNER STEPS - CHANGELOG
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased][unreleased]
### Changed
- Improve argument against commit logs.
## [0.0.8] - 2015-02-17
### Changed
- Update year to match in every README example.
- Reluctantly stop making fun of Brits only, since most of the world
writes dates in a strange way.
### Fixed
- Fix typos in recent README changes.
- Update outdated unreleased diff link.
Slide 42
Slide 42 text
BEGINNER STEPS - CHANGELOG
keepachangelog.com
Slide 43
Slide 43 text
No content
Slide 44
Slide 44 text
No content
Slide 45
Slide 45 text
BEGINNER STEPS - CHANGELOG
upgrade.md
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
No content
Slide 48
Slide 48 text
BEGINNER STEPS
GitHub
PC
test service
packagist
Slide 49
Slide 49 text
BEGINNER STEPS
GitHub
PC
test service
packagist
git push
Slide 50
Slide 50 text
BEGINNER STEPS
GitHub
PC
test service
packagist
webhook
webhook
Slide 51
Slide 51 text
BEGINNER STEPS
GitHub
PC
test service
packagist
analyses
composer.json
/stores version
runs tests
Slide 52
Slide 52 text
BEGINNER STEPS
GitHub
PC
test service
packagist
status
green!
BEGINNER STEPS - README.MD
// open an image file
$img = Image::make('public/foo.jpg');
// resize image instance
$img->resize(320, 240);
// insert a watermark
$img->insert('public/watermark.png');
// save image in desired format
$img->save('public/bar.jpg');
Slide 56
Slide 56 text
No content
Slide 57
Slide 57 text
BEGINNER STEPS
No license is the worst
http:/
/choosealicense.com/
Slide 58
Slide 58 text
No content
Slide 59
Slide 59 text
BEGINNER STEPS - CONTRIBUTING
Instructions
how to test
how to make pull request
philosophy
Slide 60
Slide 60 text
BEGINNER STEPS
Congrats,
you’re no longer a newbie!
Slide 61
Slide 61 text
BEGINNER STEPS - HINT 1
jonathantorres/construct
Slide 62
Slide 62 text
BEGINNER STEPS - HINT 1
$ construct generate --help
Arguments:
name The vendor/project name
Options:
--test (-t) Testing framework (default: "phpunit")
--license (-l) License (default: "MIT")
--namespace (-s) Namespace for project (default: "Vendor\\Pro
--git (-g) Initialize an empty Git repo
--phpcs (-p) Generate a PHP Coding Standards Fixer config
--keywords (-k) Comma separated list of Composer keywords
--vagrant Generate a Vagrantfile
Slide 63
Slide 63 text
BEGINNER STEPS - HINT 1
Or use a skeleton package
Slide 64
Slide 64 text
BEGINNER STEPS - HINT 2
franzl/studio
Slide 65
Slide 65 text
BEGINNER STEPS - HINT 2
$ studio load --help
Usage:
load
Arguments:
path The path where the package files are located
Slide 66
Slide 66 text
2. Intermediate tips
Slide 67
Slide 67 text
INTERMEDIATE TIPS - ENVIRONMENTS
Packages have
environments too
Slide 68
Slide 68 text
INTERMEDIATE TIPS - ENVIRONMENTS
dev/local
test/ci
production
Slide 69
Slide 69 text
INTERMEDIATE TIPS - ENVIRONMENTS - DEV & CI
not in production:
composer require --dev
also installs require-dev dependencies
Slide 70
Slide 70 text
INTERMEDIATE TIPS - ENVIRONMENTS - CI
CI only:
code coverage
Slide 71
Slide 71 text
INTERMEDIATE TIPS - ENVIRONMENTS - CI
phpunit --coverage-html=/tmp/coverage/;
vs
phpunit --coverage-clover=/tmp/coverage.xml;
ocular code-coverage:upload /tmp/coverage.xml;
Slide 72
Slide 72 text
INTERMEDIATE TIPS - ENVIRONMENTS - PROD
Keep your tests
out of other people’s
production