Skip to content

Commit 623a460

Browse files
committed
bump package to all cool new things
1 parent ce727b5 commit 623a460

25 files changed

+118
-216
lines changed

.github/dependabot.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
version: 2
22
updates:
3-
- package-ecosystem: composer
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: spatie/pest-plugin-snapshots
10-
versions:
11-
- 1.0.0
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
reviewers:
9+
- "Gummibeer"
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
reviewers:
15+
- "Gummibeer"

.github/workflows/composer-normalize.yml

-26
This file was deleted.

.github/workflows/markdown-normalize.yml

-19
This file was deleted.

.github/workflows/pest.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: pest
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 15
12+
strategy:
13+
matrix:
14+
php: ['8.1', '8.2']
15+
dependency-version: [prefer-lowest, prefer-stable]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
extensions: mbstring, json
22+
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
23+
- run: vendor/bin/pest

.github/workflows/pint.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pint
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
phpcs:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: 8.1
16+
- run: composer install --no-interaction --no-scripts
17+
- run: vendor/bin/pint --test

.github/workflows/run-tests.yml

-40
This file was deleted.

.github/workflows/stale-issues.yml

-57
This file was deleted.

.styleci.yml

-3
This file was deleted.

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[![Offset Earth](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-green?style=for-the-badge)](https://plant.treeware.earth/Astrotomic/php-open-graph)
66
[![Larabelles](https://img.shields.io/badge/Larabelles-%F0%9F%A6%84-lightpink?style=for-the-badge)](https://www.larabelles.com/)
77

8-
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Astrotomic/php-open-graph/run-tests?style=flat-square&logoColor=white&logo=github&label=Tests)](https://github.com/Astrotomic/php-open-graph/actions?query=workflow%3Arun-tests)
9-
[![StyleCI](https://styleci.io/repos/82821437/shield)](https://styleci.io/repos/82821437)
8+
[![pest](https://img.shields.io/github/workflow/status/Astrotomic/php-open-graph/pest?style=flat-square&logoColor=white&logo=github&label=Tests)](https://github.com/Astrotomic/php-open-graph/actions?query=workflow%3Apest)
9+
[![pint](https://img.shields.io/github/workflow/status/Astrotomic/php-open-graph/pint?style=flat-square&logoColor=white&logo=github&label=CS)](https://github.com/Astrotomic/php-open-graph/actions?query=workflow%3Apint)
1010
[![Total Downloads](https://img.shields.io/packagist/dt/astrotomic/php-open-graph.svg?label=Downloads&style=flat-square)](https://packagist.org/packages/astrotomic/php-open-graph)
1111

1212
This package provides a fluent PHP OOP builder for [Open Graph protocol](https://ogp.me) and [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards).
@@ -44,36 +44,37 @@ echo OpenGraph::website('Example')
4444

4545
#### Global
4646

47-
- `\Astrotomic\OpenGraph\Types\Website`
4847
- `\Astrotomic\OpenGraph\Types\Article`
49-
- `\Astrotomic\OpenGraph\Types\Profile`
5048
- `\Astrotomic\OpenGraph\Types\Book`
49+
- `\Astrotomic\OpenGraph\Types\Profile`
50+
- `\Astrotomic\OpenGraph\Types\Website`
5151

5252
#### Music
5353

5454
- `\Astrotomic\OpenGraph\Types\Music\Album`
5555
- `\Astrotomic\OpenGraph\Types\Music\Playlist`
56-
- `\Astrotomic\OpenGraph\Types\Music\Song`
5756
- `\Astrotomic\OpenGraph\Types\Music\RadioStation`
57+
- `\Astrotomic\OpenGraph\Types\Music\Song`
5858

5959
#### Video
6060

61-
- `\Astrotomic\OpenGraph\Types\Video\Movie`
62-
- `\Astrotomic\OpenGraph\Types\Video\TvShow`
6361
- `\Astrotomic\OpenGraph\Types\Video\Episode`
62+
- `\Astrotomic\OpenGraph\Types\Video\Movie`
6463
- `\Astrotomic\OpenGraph\Types\Video\Other`
64+
- `\Astrotomic\OpenGraph\Types\Video\TvShow`
6565

6666
#### Twitter
6767

68-
- `\Astrotomic\OpenGraph\Types\Twitter\Summary`
69-
- `\Astrotomic\OpenGraph\Types\Twitter\SummaryLargeImage`
68+
- `\Astrotomic\OpenGraph\Types\Twitter\App`
7069
- `\Astrotomic\OpenGraph\Types\Twitter\Player`
70+
- `\Astrotomic\OpenGraph\Types\Twitter\SummaryLargeImage`
71+
- `\Astrotomic\OpenGraph\Types\Twitter\Summary`
7172

7273
### Structured Properties
7374

75+
- `\Astrotomic\OpenGraph\StructuredProperties\Audio`
7476
- `\Astrotomic\OpenGraph\StructuredProperties\Image`
7577
- `\Astrotomic\OpenGraph\StructuredProperties\Video`
76-
- `\Astrotomic\OpenGraph\StructuredProperties\Audio`
7778

7879
## Testing
7980

composer.json

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "astrotomic/php-open-graph",
33
"description": "Easily generate Open Graph tags",
4+
"license": "MIT",
45
"keywords": [
56
"open-graph"
67
],
7-
"homepage": "https://github.com/Astrotomic/php-open-graph",
8-
"license": "MIT",
98
"authors": [
109
{
1110
"name": "Tom Witkowski",
@@ -14,31 +13,31 @@
1413
"role": "Developer"
1514
}
1615
],
16+
"homepage": "https://github.com/Astrotomic/php-open-graph",
1717
"require": {
18-
"php": "^7.1 || ^8.0",
18+
"php": "^8.1",
1919
"astrotomic/php-conditional-proxy": "^0.2.1"
2020
},
2121
"require-dev": {
22-
"pestphp/pest": "^0.3.0",
23-
"spatie/pest-plugin-snapshots": "^0.3.0"
24-
},
25-
"suggest": {
26-
"php": "^7.4"
27-
},
28-
"config": {
29-
"sort-packages": true,
30-
"allow-plugins": {
31-
"pestphp/pest-plugin": true
32-
}
22+
"laravel/pint": "^1.0",
23+
"pestphp/pest": "^2.0",
24+
"spatie/pest-plugin-snapshots": "^2.0"
3325
},
26+
"minimum-stability": "dev",
27+
"prefer-stable": true,
3428
"autoload": {
3529
"psr-4": {
3630
"Astrotomic\\OpenGraph\\": "src"
3731
}
3832
},
39-
"minimum-stability": "dev",
40-
"prefer-stable": true,
33+
"config": {
34+
"allow-plugins": {
35+
"pestphp/pest-plugin": true
36+
},
37+
"sort-packages": true
38+
},
4139
"scripts": {
42-
"test": "vendor/bin/pest"
40+
"fix": "@php vendor/bin/pint",
41+
"test": "@php vendor/bin/pest"
4342
}
4443
}

0 commit comments

Comments
 (0)