Skip to content

Commit

Permalink
bump package to all cool new things
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Oct 9, 2023
1 parent ce727b5 commit 623a460
Show file tree
Hide file tree
Showing 25 changed files with 118 additions and 216 deletions.
22 changes: 13 additions & 9 deletions .github/dependabot.yml
@@ -1,11 +1,15 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: spatie/pest-plugin-snapshots
versions:
- 1.0.0
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
reviewers:
- "Gummibeer"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "Gummibeer"
26 changes: 0 additions & 26 deletions .github/workflows/composer-normalize.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/markdown-normalize.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/pest.yml
@@ -0,0 +1,23 @@
name: pest

on:
push:
pull_request:

jobs:
test:
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
php: ['8.1', '8.2']
dependency-version: [prefer-lowest, prefer-stable]
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, json
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- run: vendor/bin/pest
17 changes: 17 additions & 0 deletions .github/workflows/pint.yml
@@ -0,0 +1,17 @@
name: pint

on:
push:
pull_request:

jobs:
phpcs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- run: composer install --no-interaction --no-scripts
- run: vendor/bin/pint --test
40 changes: 0 additions & 40 deletions .github/workflows/run-tests.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/stale-issues.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .styleci.yml

This file was deleted.

21 changes: 11 additions & 10 deletions README.md
Expand Up @@ -5,8 +5,8 @@
[![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)
[![Larabelles](https://img.shields.io/badge/Larabelles-%F0%9F%A6%84-lightpink?style=for-the-badge)](https://www.larabelles.com/)

[![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)
[![StyleCI](https://styleci.io/repos/82821437/shield)](https://styleci.io/repos/82821437)
[![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)
[![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)
[![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)

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).
Expand Down Expand Up @@ -44,36 +44,37 @@ echo OpenGraph::website('Example')

#### Global

- `\Astrotomic\OpenGraph\Types\Website`
- `\Astrotomic\OpenGraph\Types\Article`
- `\Astrotomic\OpenGraph\Types\Profile`
- `\Astrotomic\OpenGraph\Types\Book`
- `\Astrotomic\OpenGraph\Types\Profile`
- `\Astrotomic\OpenGraph\Types\Website`

#### Music

- `\Astrotomic\OpenGraph\Types\Music\Album`
- `\Astrotomic\OpenGraph\Types\Music\Playlist`
- `\Astrotomic\OpenGraph\Types\Music\Song`
- `\Astrotomic\OpenGraph\Types\Music\RadioStation`
- `\Astrotomic\OpenGraph\Types\Music\Song`

#### Video

- `\Astrotomic\OpenGraph\Types\Video\Movie`
- `\Astrotomic\OpenGraph\Types\Video\TvShow`
- `\Astrotomic\OpenGraph\Types\Video\Episode`
- `\Astrotomic\OpenGraph\Types\Video\Movie`
- `\Astrotomic\OpenGraph\Types\Video\Other`
- `\Astrotomic\OpenGraph\Types\Video\TvShow`

#### Twitter

- `\Astrotomic\OpenGraph\Types\Twitter\Summary`
- `\Astrotomic\OpenGraph\Types\Twitter\SummaryLargeImage`
- `\Astrotomic\OpenGraph\Types\Twitter\App`
- `\Astrotomic\OpenGraph\Types\Twitter\Player`
- `\Astrotomic\OpenGraph\Types\Twitter\SummaryLargeImage`
- `\Astrotomic\OpenGraph\Types\Twitter\Summary`

### Structured Properties

- `\Astrotomic\OpenGraph\StructuredProperties\Audio`
- `\Astrotomic\OpenGraph\StructuredProperties\Image`
- `\Astrotomic\OpenGraph\StructuredProperties\Video`
- `\Astrotomic\OpenGraph\StructuredProperties\Audio`

## Testing

Expand Down
33 changes: 16 additions & 17 deletions composer.json
@@ -1,11 +1,10 @@
{
"name": "astrotomic/php-open-graph",
"description": "Easily generate Open Graph tags",
"license": "MIT",
"keywords": [
"open-graph"
],
"homepage": "https://github.com/Astrotomic/php-open-graph",
"license": "MIT",
"authors": [
{
"name": "Tom Witkowski",
Expand All @@ -14,31 +13,31 @@
"role": "Developer"
}
],
"homepage": "https://github.com/Astrotomic/php-open-graph",
"require": {
"php": "^7.1 || ^8.0",
"php": "^8.1",
"astrotomic/php-conditional-proxy": "^0.2.1"
},
"require-dev": {
"pestphp/pest": "^0.3.0",
"spatie/pest-plugin-snapshots": "^0.3.0"
},
"suggest": {
"php": "^7.4"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
"laravel/pint": "^1.0",
"pestphp/pest": "^2.0",
"spatie/pest-plugin-snapshots": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Astrotomic\\OpenGraph\\": "src"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
},
"sort-packages": true
},
"scripts": {
"test": "vendor/bin/pest"
"fix": "@php vendor/bin/pint",
"test": "@php vendor/bin/pest"
}
}

0 comments on commit 623a460

Please sign in to comment.