Skip to content

Commit 00660eb

Browse files
committed
wip
1 parent b8a824f commit 00660eb

File tree

5 files changed

+70
-72
lines changed

5 files changed

+70
-72
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://spatie.be/open-source/support-us

.github/workflows/run-tests.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [7.4, 7.3, 7.2]
13+
laravel: [5.8.*, 6.*, 7.*]
14+
dependency-version: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 7.*
17+
testbench: 5.*
18+
- laravel: 6.*
19+
testbench: 4.*
20+
- laravel: 5.8.*
21+
testbench: 3.8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v1
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v1
31+
with:
32+
path: ~/.composer/cache/files
33+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
47+
- name: Execute tests
48+
run: vendor/bin/phpunit
49+
50+
- name: Send Slack notification
51+
uses: 8398a7/action-slack@v2
52+
if: failure()
53+
with:
54+
status: ${{ job.status }}
55+
author_name: ${{ github.actor }}
56+
env:
57+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ This package provides an easy way to generate [RSS feeds](http://www.whatisrss.c
1111

1212
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).
1313

14+
## Support us
15+
16+
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
17+
18+
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
19+
20+
1421
## Installation
1522

1623
You can install the package via composer:
@@ -74,35 +81,6 @@ Optionally you can publish the view files:
7481
php artisan vendor:publish --provider="Spatie\Feed\FeedServiceProvider" --tag="views"
7582
```
7683

77-
### Upgrading from v1
78-
79-
Version 2 introduces some major API changes to the package, but upgrading shouldn't take too long.
80-
81-
Replace the `FeedItem` interface with the new `Feedable` interface on your models. Visit the [Usage](#usage) usage for more details on implementing the new interface.
82-
83-
```diff
84-
- use Spatie\Feed\FeedItem;
85-
+ use Spatie\Feed\Feedable;
86-
87-
- class NewsItem extends Model implements FeedItem
88-
+ class NewsItem extends Model implements Feedable
89-
```
90-
91-
Rename your config file from `laravel-feed.php` to `feed.php`.
92-
93-
```diff
94-
config/
95-
- laravel-feed.php
96-
+ feed.php
97-
```
98-
99-
Change the links `@include` directive.
100-
101-
```diff
102-
- @include('laravel-feed::feed-links')
103-
+ @include('feed::links')
104-
```
105-
10684
## Usage
10785

10886
Imagine you have a model named `NewsItem` that contains records that you want to have displayed in the feed.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
],
3232
"require": {
3333
"php" : "^7.2",
34-
"illuminate/support": "~5.8.0|^6.0",
35-
"illuminate/http": "~5.8.0|^6.0",
36-
"illuminate/contracts": "~5.8.0|^6.0"
34+
"illuminate/support": "~5.8.0|^6.0|^7.0",
35+
"illuminate/http": "~5.8.0|^6.0|^7.0",
36+
"illuminate/contracts": "~5.8.0|^6.0|^7.0"
3737
},
3838
"require-dev": {
39-
"orchestra/testbench": "~3.8.0|^4.0",
39+
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
4040
"phpunit/phpunit": "^8.0",
4141
"spatie/phpunit-snapshot-assertions": "^2.0"
4242
},

0 commit comments

Comments
 (0)