De acordo com o próprio criador, Eric Evans, DDD não é uma tecnologia e nem uma metodologia. DDD é um estilo de arquitetura orientado a objetos, focado em modelar o domínio do negócio e a lógica do domínio com o uso de técnicas, práticas e padrões de projeto.
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
| brew install jpeg | |
| brew install libtiff --with-xz | |
| brew install argon2 glib imap-uw libpq | |
| brew install webp --with-giflib --with-libtiff | |
| brew install libzip freetype | |
| brew install unixodbc | |
| brew install freetds --with-unixodbc |
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
| xdebug.remote_host = "localhost" | |
| xdebug.collect_assignments = 1 | |
| xdebug.show_error_trace = 1 | |
| xdebug.show_exception_trace = 1 | |
| xdebug.show_local_vars = 1 | |
| xdebug.collect_params = 4 | |
| xdebug.show_mem_delta = 1 | |
| xdebug.profiler_enable = 0 | |
| xdebug.remote_enable = 1 | |
| xdebug.default_enable = 1 |
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
| composer global require phpunit/phpunit @stable | |
| composer global require phpunit/dbunit @stable | |
| composer global require "phpunit/php-invoker=~1.1." | |
| composer global require sebastian/phpcpd | |
| composer global require friendsofphp/php-cs-fixer | |
| composer global require "squizlabs/php_codesniffer=*" | |
| composer global require phpmd/phpmd:@stable | |
| composer global require phploc/phploc:@stable | |
| composer global require phpstan/phpstan |
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 Coding Standards Fixer | |
| # ########################## | |
| php-cs-fixer fix Controller.php --rules=@PSR2 --dry-run --diff - | |
| php-cs-fixer fix Controller.php --rules=@PSR2 -v | |
| php-cs-fixer fix app/Http/Controllers --dry-run --verbose --diff --using-cache=no | |
| php-cs-fixer --dry-run --diff --using-cache=no --rules=@PSR2,@Symfony fix Controller.php | |
| php-cs-fixer --dry-run --diff --using-cache=no --rules=@PSR2,@Symfony fix Controller.php ResponseController.php |
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
| ## Optional: if you've been playing around with permissions consider resetting all files and directories to the default. | |
| sudo find ./ -type d -exec chmod 755 {} \; | |
| sudo find ./ -type f -exec chmod 644 {} \; | |
| ## Give users part of the laravel group the standard RW and RWX permissions for the existing files and folders respectively. | |
| sudo find ./storage -type d -exec chmod 775 {} \; | |
| sudo find ./bootstrap/cache -type d -exec chmod 775 {} \; | |
| sudo find ./storage -type f -exec chmod 664 {} \; | |
| sudo find ./bootstrap/cache -type f -exec chmod 664 {} \; |
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
| # EditorConfig is awesome: http://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| # all files | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 |
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 artisan clear-compiled | |
| php artisan cache:clear | |
| php artisan config:clear | |
| php artisan config:cache | |
| php artisan view:cache | |
| php artisan route:cache | |
| php artisan optimize |
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
| phpcs --standard=PSR2 --colors --error-severity=1 --ignore='*blade.php*,*twig.php*' --tab-width=4 --encoding=utf-8 --extensions=php -d memory_limit=32M -n -s --report=full --report-width=auto app/ | |
| phpcbf --standard=PSR2 --colors --error-severity=1 --ignore='*blade.php*,*twig.php*' --tab-width=4 --encoding=utf-8 --extensions=php -d memory_limit=32M -n app/ | |
| php-cs-fixer --diff -v --using-cache=no --rules=@PSR2,@Symfony fix app/ | |
| phpmd app/ html cleancode,codesize,controversial,design,naming,unusedcode --suffixes php > phpmd.html | |
| phpcpd --no-interaction --progress --min-lines=4 --min-tokens=40 app/ |