craftcms / apple-news
Publish Craft CMS entries to Apple News
Requires
- php: ^8.5
- craftcms/cms: ^6.0.0-beta.1
- guzzlehttp/guzzle: ^7.2
- league/html-to-markdown: ^5.0
Requires (Dev)
- larastan/larastan: ^3.13
- laravel/pint: ^1.22
- orchestra/testbench: ^11.0
- pestphp/pest: ^5.0
- pestphp/pest-plugin-laravel: ^5.0
- phpstan/phpstan: ^2.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 5.x-dev
- 5.0.0
- 4.x-dev
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.0
- 3.x-dev
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0.1
- 3.0.0
- v2.x-dev
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- dev-t9n/5.x
- dev-t9n/4.x
- dev-feature/translations-4.x
- dev-feature/translations-5.x
- dev-feature/craft-6-native
- dev-feature/for-v6-with-adapter-package
- dev-bugfix/remoteassets
- dev-bugfix/remote-assets
- dev-feature/install-migration
This package is auto-updated.
Last update: 2026-11-21 19:33:00 UTC
README
Apple News
This plugin provides an Apple News integration for Craft CMS, making it possible to publish your content to iPhone, iPad, and Mac users around the world.
Before You Begin
Before you can start publishing to Apple News, you’ll need to sign up for News Publisher and create your first channel. Make sure you choose to publish with Apple News Format when asked. Note that new channels must go through an approval process before they can be used.
Once you’ve created a channel, you’ll need to write down its Channel ID and API credentials. You can get those from Settings → Channel Info → Connect CMS → API Key in News Publisher.
Requirements
This plugin requires Craft CMS 6.0 or later and PHP 8.5 or later. It doesn’t need the craftcms/yii2-adapter package.
For Craft CMS 5, use Apple News 4.x. If you’re upgrading from 4.x, see UPGRADE.md.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for Apple News. Then click on the Install button in its modal window.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require craftcms/apple-news # tell Craft to install the plugin php artisan craft:plugin:install apple-news
Configuration
Publish to Apple News gets its own configuration file, located at config/craft/apple-news.php. To create it, run:
php artisan vendor:publish --tag=apple-news
It can have the following config settings:
channels(array) – List of channel class configsautoPublishOnSave(bool) – Whether entries should be automatically published to Apple News whenever they are saved (trueby default)httpClientTimeout(int) – Seconds to wait for the Apple News API to respond (30by default)
Here’s an example:
<?php return [ 'channels' => [ [ 'class' => applenewschannels\MyNewsChannel::class, 'channelId' => env('NEWS_CHANNEL_ID'), // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 'apiKeyId' => env('NEWS_API_KEY'), // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 'apiSecret' => env('NEWS_API_SECRET'), // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ], ], ];
Channel Classes
Channel classes tell the plugin everything it needs to know to start publishing content Apple News. They should extend CraftCms\AppleNews\BaseChannel. Each channel’s config can set any of the class’s public properties.
We recommend that you save your channel classes in config/apple-news-channels and use an applenewschannels namespace.
<?php namespace applenewschannels; // ...
An example channel class is provided at apple-news-channels/MyNewsChannel.php, which will more or less work with the “News” section within the Happy Lager demo site.
Autoloading your Channel Classes
To make your channel classes auto-loadable, add a new autoload root to composer.json for your channel and article classes, and then run composer dump-autoload.
{
"autoload": {
"psr-4": {
"applenewschannels\\": "config/apple-news-channels/"
}
}
}
Usage
Once your Channel classes are set up and included properly, an Apple News panel appears in the details pane of the entry editor, for entries that have at least one matching channel. It shows the state of the entry’s article in each channel, and keeps it up to date while the article is queued or processing. Once a version of the article is visible in the News app, or about to be, the panel also shows its share URL with a copy button.
Each channel displays an action menu beside it with some of the following options, depending on the state of the article:
- Publish to Apple News – Queues the article to be published to Apple News.
- Download for News Preview – Downloads the entry’s
article.json(and other files), which can be loaded into the News Preview app, to see exactly how your article will look on various iOS devices once published.
There is also a Publish to Apple News bulk action on the Entries index page, which makes it possible to queue up several entries to be published at once. It’s available to admins and to people who can save entries in the selected section.
Articles are published by queue jobs, so make sure your project runs a queue worker (php artisan queue:work).
The Apple News Info utility lists each channel’s sections and their IDs.
Resources
You can learn more about publishing on Apple News at the following resources:
Caveats
Please be aware of the following caveats:
- Entries with a Post Date set in the future won’t be automatically published to Apple News when they go live.

