composer require jasny/{{library}}
Last active
August 14, 2018 10:50
-
-
Save jasny/3ac3dab1f8e7d8c03ae49bac737820e6 to your computer and use it in GitHub Desktop.
New PHP library
This file contains 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": "jasny/{{library}}", | |
"description": "", | |
"keywords": [], | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Arnold Daniels", | |
"email": "arnold@jasny.net", | |
"homepage": "http://www.jasny.net" | |
} | |
], | |
"support": { | |
"issues": "https://github.com/jasny/{{library}}/issues", | |
"source": "https://github.com/jasny/{{library}}" | |
}, | |
"require": { | |
"php": ">=7.1.0" | |
}, | |
"require-dev": { | |
"jasny/php-code-quality": "^2.3" | |
}, | |
"autoload": { | |
"psr-4": { | |
"Jasny\\{{library}}\\": "src/" | |
} | |
}, | |
"autoload-dev": { | |
"psr-4": { | |
"Jasny\\{{library}}\\Tests": "tests/" | |
} | |
}, | |
"scripts": { | |
"test": [ | |
"phpunit", | |
"phpcs -p", | |
"phpstan analyse" | |
] | |
} | |
} |
This file contains 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
sed -i 's/{{library}}/'$(pwd | xargs basename)'/' README.md | |
sed -i 's/{{library}}/'$(pwd | xargs basename)'/' composer.json | |
mkdir -p src tests | |
composer install | |
cp vendor/jasny/php-code-quality/.gitignore . | |
cp vendor/jasny/php-code-quality/phpunit.xml.dist . | |
cp vendor/jasny/php-code-quality/phpcs.xml.dist ./phpcs.xml | |
cp vendor/jasny/php-code-quality/phpstan.neon.dist ./phpstan.neon | |
cp vendor/jasny/php-code-quality/travis.yml.dist ./.travis.yml | |
cp vendor/jasny/php-code-quality/bettercodehub.yml.dist ./.bettercodehub.yml | |
git add . | |
git commit -a -m "Initial commit" | |
git push | |
travis sync | |
travis enable | |
xdg-open https://scrutinizer-ci.com/g/new | |
xdg-open https://insight.sensiolabs.com/projects/new/github | |
xdg-open https://bettercodehub.com/repositories | |
xdg-open README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment