- Phase 1 (Articles, Comments)
- symfony 4.3 skeleton
https://symfony.com/releases/4.3
- PHP version 7.x
- Mysql version 5.7 or version 8
- Composer
https://getcomposer.org/
| <?php | |
| // Using built in metod `count_chars` | |
| function isAnagram(string $a, string $b): bool | |
| { | |
| return count_chars(strtolower($a), 1) == count_chars(strtolower($b), 1); | |
| } | |
| // Using array_diff expected $a or $b consists from [a-z] | |
| function isAnagram(string $a, string $b): bool |
| <?php | |
| $endPoint = 'https://api.github.com/graphql'; | |
| $query = <<<'GRAPHQL' | |
| query getUsers { | |
| user { | |
| id | |
| name | |
| } |
| git rebase --interactive HEAD~2 | |
| # we are going to squash c into b | |
| pick b76d157 b | |
| pick a931ac7 c | |
| # squash c into b | |
| pick b76d157 b | |
| s a931ac7 c |
| Command | Description |
|---|---|
git config --global user.name "firstName lastName" |
make sure to provide your actual name |
git config --global user.email "[email protected]" |
make sure to provide your actual email address |
git config --global color.ui true |
Display the command-line UI in color |
git config --global push.default current |
When pushing code, always push only your current branch to a branch of the same name |
git config --global fetch.prune true |
Automatically prune deleted branches from your local copy when you fetch (or pull) |
git config --global core.autocrlf false |
Tell git not to mess with your line endings |
| <?php | |
| namespace ACM\Bundle\CreditBundle\Constant; | |
| final class CreditStatus implements IConstant | |
| { | |
| const PENDING = 1; | |
| const PENDING_LABEL = 'Pending'; | |
| const SUCCESS = 2; |
Getting started:
Related tutorials: