PHPackages                             sergiovilar/kindle-periodical - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sergiovilar/kindle-periodical

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sergiovilar/kindle-periodical
=============================

Php class that helps to build kindle periodicals

20155PHP

Since Jul 27Pushed 11y ago4 watchersCompare

[ Source](https://github.com/sergiopvilar/Kindle-Periodical)[ Packagist](https://packagist.org/packages/sergiovilar/kindle-periodical)[ RSS](/packages/sergiovilar-kindle-periodical/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Kindle Periodical
=================

[](#kindle-periodical)

Php class that helps to build kindle periodicals

**Important:** You need to add [KindleGen](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211) as a command to run KindlePeriodical

Usage
-----

[](#usage)

**(Example can be found on example.php)**

First you need to create an array with the content of the periodical:

```
$content = array(

	// Array of sections
	array(
		'id' => '0',
		'name' => 'My first section',
		'content' => array(

			// Array of articles
			array(
				'title' => 'Title of my first article',
				'content' => 'content of my article' // HTML is allowed
			)
		)
	),

	array(
		'id' => '1',
		'name' => 'My toher section',
		'content' => array(

			// Array of articles
			array(
				'title' => 'Title of my other article',
				'content' => 'content of my article'
			)
		)
	)

);

```

With this, you can now generate your .mobi file with KindlePeriodical:

```
 $ebook = new \Kindle\Periodical(array(

    "outputFolder" => "out",

    // Optional arguments:
    "shell" => false, // KindlePeriodical will use exec instead of shell_exec
    "debug" => true

));

$ebook->setMeta(array(
    'title' => 'My Kindle Periodical',
    'creator' => "sergiovilar",
    'publisher' => "sergiovilar",
    'subject' => 'Sample Periodical',
    'description' => 'Set of articles in one .mobi file'
));

// Generates the file
$content = $ebook->setContent($content);

// Return the file name
$file = $ebook->getFilename();

// Download the file
$ebook->downloadFile();

// Remove the file and directory
$ebook->deleteFile();

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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/680e77e677507f54274cabc890bf31178f926649e657732ea4b8db4afa5d0bf3?d=identicon)[sergiovilar](/maintainers/sergiovilar)

---

Top Contributors

[![gezpage](https://avatars.githubusercontent.com/u/821420?v=4)](https://github.com/gezpage "gezpage (3 commits)")

### Embed Badge

![Health badge](/badges/sergiovilar-kindle-periodical/health.svg)

```
[![Health](https://phpackages.com/badges/sergiovilar-kindle-periodical/health.svg)](https://phpackages.com/packages/sergiovilar-kindle-periodical)
```

###  Alternatives

[alcohol/iso4217

ISO 4217 PHP Library

15010.9M33](/packages/alcohol-iso4217)[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.5M16](/packages/kkszymanowski-traitor)[bruli/php-value-objects

PHP Value objects to use for DDD domains.

43321.3k8](/packages/bruli-php-value-objects)[adsmurai/currency

A small library to handle currencies and money values

4442.7k](/packages/adsmurai-currency)

PHPackages © 2026

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