Download the PHP package craftcms/apple-news without Composer

On this page you can find all versions of the php package craftcms/apple-news. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apple-news

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 SettingsChannel InfoConnect CMSAPI Key in News Publisher.

Requirements

This plugin requires Craft CMS 5.0.0+.

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:

Configuration

Publish to Apple News gets its own configuration file, located at config/apple-news.php. It can have the following config settings:

Here’s an example:

Channel Classes

Channel classes tell the plugin everything it needs to know to start publishing content Apple News. They should should extend craft\applenews\BaseChannel.

We recommend that you save your channel classes in config/apple-news-channels and use an applenewschannels namespace.

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.

Usage

Once your Channel classes are set up and included properly, a new Apple News Channels area appear in the details pane of Edit Entry pages, for entries that have at least one matching channel.

Each channel will display an action menu beside it with some of the following options, depending on the state of the article:

There will also be a new 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.

Resources

You can learn more about publishing on Apple News at the following resources:

Caveats

Please be aware of the following caveats:

Thanks

Many thanks to Chapter Three for their excellent AppleNewsAPI library.


All versions of apple-news with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
craftcms/cms Version ^5.0.0-beta.1
chapter-three/apple-news-api Version ^0.3.9
league/html-to-markdown Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package craftcms/apple-news contains the following files

Loading the files please wait ....