Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created January 16, 2019 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/94d1c4d9f22431f12102051cff4300ab to your computer and use it in GitHub Desktop.
Save tommcfarlin/94d1c4d9f22431f12102051cff4300ab to your computer and use it in GitHub Desktop.
[WordPress] WordPress Widgets: Refactoring, Part 3
{
"name": "wordpress-widget-boilerplate/wordpress-widget-boilerplate",
"description": "An organized, maintainable boilerplate for building widgets using WordPress best practices.",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/tommcfarlin/WordPress-Widget-Boilerplate",
"authors": [
{
"name": "Tom McFarlin",
"email": "tom@pressware.co",
"homepage": "https://pressware.co"
}
],
"support": {
"issues": "https://github.com/tommcfarlin/WordPress-Widget-Boilerplate/issues"
},
"config": {
"preferred-install": "dist",
"platform": {
"php": "7.1"
}
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"php": "7.1",
"composer/installers": "^1.4"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.13.1",
"jakub-onderka/php-parallel-lint": "^1.0.0",
"phpmd/phpmd": "^v2.6.0",
"nikic/php-parser": "^4.0",
"ocramius/proxy-manager": "^2.0.0",
"phpro/grumphp": "^0.13.1"
},
"scripts": {
"test": [
"./vendor/bin/grumphp run"
]
},
"minimum-stability": "stable"
}
<?php
// Include the autoloader.
// TODO: Note this has not yet been defined.
require_once __DIR__ . '/inc/autoload.php';
$ composer install --no-dev --no-ansi --no-interaction --optimize-autoloader --no-progress --prefer-dist
$ git checkout -b release
"autoload": {
"psr-4": {
"WordPressWidgetBoilerplate\\": "src/",
"WordPressWidgetBoilerplate\\Subscriber\\": "src/Subscriber/",
"WordPressWidgetBoilerplate\\Utilities\\": "src/Utilities/",
"WordPressWidgetBoilerplate\\Views\\": "src/Views/"
}
},
*.DS_Store
*.log
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/upgrade/
wp-content/uploads/
wp-content/mu-plugins/
wp-content/wp-cache-config.php
wp-content/plugins/hello.php
/.htaccess
/license.txt
/readme.html
/sitemap.xml
/sitemap.xml.gz
/vendor/**/.git
/vendor/bin
composer.lock
$ git push --set-upstream origin release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment