Skip to content

Commit 82e62c3

Browse files
committed
feat(plugin): Publish plugin
1 parent 5a5dfb3 commit 82e62c3

File tree

6 files changed

+589
-4
lines changed

6 files changed

+589
-4
lines changed

.github/workflows/prefix.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PHP-Prefixer
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Run PHP-Prefixer
14+
uses: PHP-Prefixer/php-prefixer-build-action@main
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
19+
project_id: ${{ secrets.PROJECT_ID }}

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
composer.phar
22
/vendor/
33

4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
4+
.editorconfig
5+
.php-cs-fixer.dist.php

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# using-guzzle-in-a-word-press-plug-in-with-php-prefixer
1+
# Using Guzzle in a WordPress plug-in with PHP-Prefixer
2+
23
Using Guzzle in a WordPress plug-in with PHP-Prefixer

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "php-prefixer/using-guzzle-in-a-word-press-plug-in-with-php-prefixer",
3+
"description": "Using Guzzle in a WordPress plug-in with PHP-Prefixer. A plugin to showcase the PHP-Prefixer service. Install any library freely. PHP-Prefixer will manage your namespaces.",
4+
"extra": {
5+
"php-prefixer": {
6+
"project-name": "Using Guzzle in a WordPress plug-in with PHP-Prefixer",
7+
"namespaces-prefix": "PPP",
8+
"global-scope-prefix": "PPP_",
9+
"exclude-paths": [
10+
"bin/",
11+
"doctrine/inflector/docs",
12+
"voku/portable-ascii/build"
13+
]
14+
}
15+
},
16+
"require": {
17+
"guzzlehttp/guzzle": "^7.3"
18+
}
19+
}

0 commit comments

Comments
 (0)