| Keyword | Alternatives |
|---|---|
| from | start, startAt |
| count | amount, total, (sum?) |
| limit | maximum, limitation, (max?) |
| key | key_value |
| default | default_value, fallback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Deployer; | |
| use Deployer\Task\GroupTask; | |
| require 'recipe/sulu.php'; | |
| require 'contrib/rsync.php'; | |
| host('example.org') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy this into your shell/terminal: | |
| php -r ' | |
| require_once("vendor/autoload.php"); | |
| use Symfony\\Component\\Finder\\Finder; | |
| $symfonyComponents = []; | |
| $useFinder = new Finder(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // requires `rm -rf vendor && composer install --prefer-source` as it works via git tag | |
| $dir = new DirectoryIterator(__DIR__ . "/vendor"); | |
| $list = []; | |
| $biggestLength = 0; | |
| foreach ($dir as $fileinfo) { | |
| if (in_array($fileinfo->getFilename(), [".", ".."])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $font-family-headline: 'Lyon'; | |
| $font-family-base: 'Source Sans Pro'; | |
| $font-settings: ( | |
| mobile-headline-l: ( | |
| font-family: $font-family-headline, | |
| font-size: 34px, | |
| line-height: 38px, | |
| font-weight: $font-weight-bold, | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Controller } from '@hotwired/stimulus'; | |
| /** | |
| * A stimulus controller to handle aria-expanded and aria-controls correctly: | |
| * See also: | |
| * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded | |
| * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls | |
| * | |
| * It is specially build for dialog tags or tags hidden via hidden attribute. | |
| * It is not considered for elements behave differently in a responsive sites, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extra": { | |
| "symfony": { | |
| "allow-contrib": false, | |
| "require": "6.1.*", | |
| "endpoint": [ | |
| "https://raw.githubusercontent.com/alexander-schranz/symfony-recipes-php/flex/main/index.json", | |
| "https://raw.githubusercontent.com/alexander-schranz/symfony-recipes-php-contrib/flex/main/index.json", | |
| "flex://defaults" | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clone repository | |
| git clone git@github.com:your-name/sulu.git | |
| cd sulu | |
| # checkout your branch | |
| git fetch origin | |
| git checkout your-branch | |
| # add target remote | |
| git remote add sulu git@github.com:sulu/sulu.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "mypackage", | |
| "dependencies": {}, | |
| "devDependencies": {}, | |
| "files": [ | |
| [ | |
| "match": "/src/**/*.ts", | |
| "type": "TypeScript", | |
| "version": "4.8", | |
| "options": { |