You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8-only Support, New Features (v4) (spatie#153)
* add 'content-type' config option to allow customization of the content-type for the feed response
* add jsonfeed.org support
* add test for jsonfeed.org support, update test snapshots
* sync config/misc files with spatie/package-skeleton-laravel where possible
* drop php 7 support; add support for parallel testing; bump phpunit version to 9.5
* update php-cs-fixer config
* update readme
* escape quotes for content/summary fields
* add support for feed images
* add configuration option for specifying the feed type (atom, rss. or json)
* add owner feed object prop, timestamp() method for generating correct timestamps based on the feed format
* ensure that generated rss, atom and json feeds can pass w3c validation
* add helper class for determining content types for feeds; use helper class to determine response content type
* add `image` attribute to FeedItem (json feeds only); remove `Feed::author` attribute and add `Feed::authorName` and `Feed::authorEmail` attributes; add test for response content type; update tests/snapshots
* update readme, wip
* use hasViewComposer() instead of separate methods for registering the view composer; code cleanup
* remove unused import
* add configuration file validation
* wip
* add config validator tests; update test snapshots
* support tuple syntax for items configuration key
* wip
* update readme, description of items key in config
* make config validation and tests more robust
* wip
* rename `jsonfeed` view to `json`
* use PHP 8 syntax where possible
* remove feed::feed view
* default to feed::atom view instead of feed::feed
* add support for caching feed items
* rename kebab-case config keys to camelCase
* wip
* use php 8 syntax, code cleanup
* add version upgrade guide
* validate cacheTtl config option
* revert item cache commits
* fix feed item resolver and tests
* update docs on how to correctly pass arguments to the `items` method
* use PHPUnit 9.5.4; bump laravel-package-tools version to v1.9
* update changelog
* remove parallel testing, use PHPUnit 9.4 to avoid issues with v9.5
Contributions are **welcome** and will be fully **credited**.
4
+
5
+
Please read and understand the contribution guide before creating an issue or pull request.
6
+
7
+
## Etiquette
8
+
9
+
This project is open source, and as such, the maintainers give their free time to build and maintain the source code
10
+
held within. They make the code freely available in the hope that it will be of use to other developers. It would be
11
+
extremely unfair for them to suffer abuse or anger for their hard work.
12
+
13
+
Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the
14
+
world that developers are civilized and selfless people.
15
+
16
+
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
17
+
quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
18
+
19
+
## Viability
20
+
21
+
When requesting or submitting new features, first consider whether it might be useful to others. Open
22
+
source projects are used by many developers, who may have entirely different needs to your own. Think about
23
+
whether or not your feature is likely to be used by other users of the project.
24
+
25
+
## Procedure
26
+
27
+
Before filing an issue:
28
+
29
+
- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
30
+
- Check to make sure your feature suggestion isn't already present within the project.
31
+
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
32
+
- Check the pull requests tab to ensure that the feature isn't already in progress.
33
+
34
+
Before submitting a pull request:
35
+
36
+
- Check the codebase to ensure that your feature doesn't already exist.
37
+
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
38
+
39
+
## Requirements
40
+
41
+
If the project maintainer has any additional requirements, you will find them listed here.
42
+
43
+
-**[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer).
44
+
45
+
-**Add tests!** - Your patch won't be accepted if it doesn't have tests.
46
+
47
+
-**Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
48
+
49
+
-**Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option.
50
+
51
+
-**One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
52
+
53
+
-**Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](https://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
This package provides an easy way to generate [RSS feeds](http://www.whatisrss.com/). There's almost no coding required on your part. Just follow the installation instructions update your config file and you're good to go.
8
+
This package provides an easy way to generate a feed for your Laravel application. Supported formats are [RSS](http://www.whatisrss.com/), [Atom](https://en.wikipedia.org/wiki/Atom_(standard)), and [JSON](https://jsonfeed.org). There's almost no coding required on your part. Just follow the installation instructions, update your config file, and you're good to go.
9
9
10
10
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).
11
11
@@ -50,9 +50,13 @@ return [
50
50
* Here you can specify which class and method will return
51
51
* the items that should appear in the feed. For example:
52
52
* 'App\Model@getAllFeedItems'
53
+
* or
54
+
* ['App\Model', 'getAllFeedItems']
53
55
*
54
-
* You can also pass an argument to that method:
55
-
* ['App\Model@getAllFeedItems', 'argument']
56
+
* You can also pass an argument to that method. Note that their key must be the name of the parameter: *
0 commit comments