PHPackages                             survos/news-api-bundle - 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. survos/news-api-bundle

ActiveSymfony-bundle

survos/news-api-bundle
======================

Symfony bundle for interacting with NewsApiCDN using https://github.com/ToshY/NewsApiNet-PHP

03PHP

Since Dec 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/survos/SurvosNewsApiBundle)[ Packagist](https://packagist.org/packages/survos/news-api-bundle)[ RSS](/packages/survos-news-api-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NewsApiBundle
=============

[](#newsapibundle)

A Symfony bundle to interact with NewsApiCDN via the [NewsApi-PHP library](https://github.com/ToshY/NewsApiNet-PHP).

Still under development, feedback welcome!

Quickstart
----------

[](#quickstart)

```
symfony new news-api-demo --webapp && cd news-api-demo
composer require survos/news-api-bundle
```

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

[](#installation)

Go to  and get a key.

Create a new Symfony project.

```
symfony new news-api-demo --webapp && cd news-api-demo
composer require survos/news-api-bundle
bin/console news-api:config  >> .env.local
bin/console news-api:list
```

You can browse interactively with the basic admin controller.

```
composer require survos/simple-datatables-bundle
symfony server:start -d
symfony open:local --path=/news-api/zones
```

Or edit .env.local and add your API key.

As each storage zone has its own passwords and id, these need to be configured individually in survos\_news-api.yaml. Rather than tediously configuring each zone by cutting and pasting, we can use the first utility to dump the configuration with just the main api key. This saves you from having to go to  and go to each storage zone, then click on it and select "FTP and ApiAccess" and selecting each key.

```
bin/console news-api:config

```

Note: use --filter to limit to the zones to a regex (@todo)

You can skip passing the api key on the command line by defining it as an environment variable, etc.

```
echo "NEWS_API_KEY=api-key >> .env.local
```

This command dumps the packages/config/survos\_news-api.yaml file with references to the environment variables, which are also dumped and should be added to .env.local. If your application only reads from news-api, you can remove the password environment variables, it is only used during writing. You can also remove the main api key if your application doesn't need it in production.

Open .env.local and replace the values.

Your application now has a bare-bones controller located at /admin/news-api, you may want to secure this route in security.yaml, or configure it in config/routes/survos\_news-api.yaml.

You also have access to a command line interface.

```
bin/console news-api:list
```

```
+------------- museado/ -----+--------+
| ObjectName     | Path      | Length |
+----------------+-----------+--------+
| photos finales | /museado/ | 0      |
+----------------+-----------+--------+

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (2 commits)")

### Embed Badge

![Health badge](/badges/survos-news-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/survos-news-api-bundle/health.svg)](https://phpackages.com/packages/survos-news-api-bundle)
```

PHPackages © 2026

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