PHPackages                             urbania/apple-news - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. urbania/apple-news

ActiveLibrary[API Development](/categories/api)

urbania/apple-news
==================

1701PHPCI failing

Since Mar 25Pushed 1y ago2 watchersCompare

[ Source](https://github.com/urbania-media/apple-news)[ Packagist](https://packagist.org/packages/urbania/apple-news)[ RSS](/packages/urbania-apple-news/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Apple News PHP
==============

[](#apple-news-php)

This package offer a wrapper around the Apple News API and Apple News Format in PHP. It includes support for Laravel, Wordpress and an HTML parser.

[![Packagist](https://camo.githubusercontent.com/52e8c4da675d8efad370cc72a0316a265f745999706f5e103caca68a08a393b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757262616e69612f6170706c652d6e6577732e737667)](https://packagist.org/packages/urbania/apple-news)[![Travis (.org) branch](https://camo.githubusercontent.com/63a05867ae88174fb5c643372779a4e6456d64af2f3e311da79c1591e5958bc6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f757262616e69612d6d656469612f6170706c652d6e6577732f6d61737465722e737667)](https://travis-ci.org/urbania-media/apple-news)[![Coveralls github](https://camo.githubusercontent.com/8a92c49921be69c7c0abeef4ca5e332ab6b8ed523db99e6f25eaab8a2d1a8727/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f757262616e69612d6d656469612f6170706c652d6e6577732e737667)](https://coveralls.io/github/urbania-media/apple-news)

- [Installation](#installation)
    - [Laravel](#laravel)
- [Usage](#usage)
    - [Pure PHP](#pure-php)
    - [Laravel](#laravel-1)

Installation
------------

[](#installation)

```
composer require urbania/apple-news
```

### Laravel

[](#laravel)

#### Versions prior to 5.5

[](#versions-prior-to-55)

1. Add the Service Provider in the config file `config/app.php`:

```
'providers' => [
    // ...
    \Urbania\AppleNews\Laravel\AppleNewsServiceProvider::class,
    // ...
]
```

2. Add the Facade in the config file `config/app.php`:

```
'facades' => [
    // ...
    'AppleNews' => \Urbania\AppleNews\Laravel\AppleNewsFacade::class,
    // ...
]
```

#### All versions

[](#all-versions)

Publish the config file to `config/apple-news.php`:

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

### Pure PHP

[](#pure-php)

Create a test article:

```
require __DIR__ . '/vendor/autoload.php';

use Urbania\AppleNews\Article;

$article = new Article([
    'identifier' => 'test-article',
    'language' => 'en-US',
    'version' => '1.7',
    'layout' => [
        'columns' => 12,
        'width' => 1024
    ],
    'title' => 'An article',
    'components' => [
        [
            'role' => 'title',
            'text' => 'This is a title'
        ],
        [
            'role' => 'body',
            'text' => 'This is a body'
        ]
    ]
]);

echo $article->toJson();
```

### Laravel

[](#laravel-1)

Create a test article: (when creating an article with the facade or the helper, it takes into account the default `article` values found in `config/apple-news.php`)

```
// Using the facade
use AppleNews;

$article = AppleNews::article([
    'identifier' => 'test-article',
    'title' => 'An article',
    'components' => [
        [
            'role' => 'title',
            'text' => 'This is a title'
        ],
        [
            'role' => 'body',
            'text' => 'This is a body'
        ]
    ]
]);

// Using the helper
$article = article([
    // ... same as above
]);

echo $article->toJson();
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2ebcf321e0a9769d76c84a73b61c42f78fc04dca244ba44aa44dd715e741e28?d=identicon)[dmongeau](/maintainers/dmongeau)

---

Top Contributors

[![dmongeau](https://avatars.githubusercontent.com/u/124966?v=4)](https://github.com/dmongeau "dmongeau (60 commits)")

---

Tags

apple-newsapple-news-format

### Embed Badge

![Health badge](/badges/urbania-apple-news/health.svg)

```
[![Health](https://phpackages.com/badges/urbania-apple-news/health.svg)](https://phpackages.com/packages/urbania-apple-news)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
