PHPackages                             robbiep/afterthedeadline - 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. robbiep/afterthedeadline

ActiveLibrary

robbiep/afterthedeadline
========================

Afterthedeadline API wrapper

0.0.13(10y ago)1261MITPHPPHP &gt;=5.5.0

Since Jan 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/robbiepaul/afterthedeadline)[ Packagist](https://packagist.org/packages/robbiep/afterthedeadline)[ Docs](https://github.com/robbiepaul/afterthedeadline)[ RSS](/packages/robbiep-afterthedeadline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (15)Used By (0)

After The Deadline API PHP Wrapper
==================================

[](#after-the-deadline-api-php-wrapper)

[![Latest Stable Version](https://camo.githubusercontent.com/fedd2e57cb4ba9023a284b95615191fac1bc5a544c565ab3bb23c6a590ef6fff/68747470733a2f2f706f7365722e707567782e6f72672f726f62626965702f6166746572746865646561646c696e652f762f737461626c65)](https://packagist.org/packages/robbiep/afterthedeadline) [![Total Downloads](https://camo.githubusercontent.com/615e211303fd43d6e4f088abcd3fc27aeea29afd717a739414b93cd9ce32f941/68747470733a2f2f706f7365722e707567782e6f72672f726f62626965702f6166746572746865646561646c696e652f646f776e6c6f616473)](https://packagist.org/packages/robbiep/afterthedeadline) [![Latest Unstable Version](https://camo.githubusercontent.com/de1f10387da243600b682ca8a90644a74b37b87704ba0299d8ac97dfc83aa03e/68747470733a2f2f706f7365722e707567782e6f72672f726f62626965702f6166746572746865646561646c696e652f762f756e737461626c65)](https://packagist.org/packages/robbiep/afterthedeadline) [![License](https://camo.githubusercontent.com/a1e10cd409b0f4bd08762276ab89157fe6e5dbf6cbd186d55b8438a1658da8d6/68747470733a2f2f706f7365722e707567782e6f72672f726f62626965702f6166746572746865646561646c696e652f6c6963656e7365)](https://packagist.org/packages/robbiep/afterthedeadline) [![StyleCI](https://camo.githubusercontent.com/2e3be697ef8e64d3aa17498c34c43e7c61f7e0dcab662d1377237cdc5fd8c29b/68747470733a2f2f7374796c6563692e696f2f7265706f732f34393335313138382f736869656c64)](https://styleci.io/repos/49351188)

This is a PHP wrapper for the [After the Deadline API](http://www.afterthedeadline.com/api.slp)

> After the Deadline is a language checker for the web with: Contextual Spell Checking, Advanced Style Checking and Intelligent Grammar Checking

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

[](#installation)

Install this package through [Composer](https://getcomposer.org/).

Add this to your `composer.json` dependencies:

```
"require": {
   "robbiep/afterthedeadline": "^0.0"
}
```

Run `composer install` to download the required files.

Usage
-----

[](#usage)

```
require_once('vendor/autoload.php');

$atd = new \RobbieP\Afterthedeadline\Afterthedeadline(['key' => md5('')]);

$atd->checkDocument("I started my schooling as the majority did in my area, at the local primarry school.");

# `getResults` will return an array of objects (Spelling, Grammar, Suggestion) or `false` if there were no results
$results = $atd->getResults();

# (Optionally) you can get formatted text back where the results have been wrapped with
# word

echo $atd->getFormatted();
```

Results in:

```
I started my schooling as the
majority
did in my area, at the local
primarry
school.
```

(Experimental) I've written some basic JavaScript using jQuery and Bootstrap to provide a simple UI to correct/ignore the results

```
echo $m->getFormatted()->getStylesAndScript(); ?>
```

Support for other languages
---------------------------

[](#support-for-other-languages)

At the moment After the Deadline supports English by default but German `de`, French `fr`, Spanish `es`, Portugese `pt`

You can either set it in the constructor:

```
$atd = new \RobbieP\Afterthedeadline\Afterthedeadline(['key' => md5(''), 'lang' => 'de']);
# You must use 2 letter country code
```

Or you can set it inline:

```
$atd = new \RobbieP\Afterthedeadline\Afterthedeadline(['key' => md5('')]);
$atd->setLanguage(\RobbieP\Afterthedeadline\Language::GERMAN);
```

If you're using it in Laravel...
--------------------------------

[](#if-youre-using-it-in-laravel)

I've included a ServiceProvider class and a config if you need to change any options. You need to add the ServiceProvider to `config/app.php`

```
'providers' => array(
    ...
    RobbieP\Afterthedeadline\AfterthedeadlineServiceProvider::class
)
```

If you want to use the Facade:

```
'aliases' => array(
    ...
    'Afterthedeadline' => RobbieP\Afterthedeadline\Facades\Afterthedeadline::class,
)
```

You will need to publish the config `php artisan vendor:publish` put your self generated API key in there.

### Usage (in Laravel)

[](#usage-in-laravel)

```
$results = \Afterthedeadline::checkDocument("some content")
                            ->getResults();
```

Contributing
------------

[](#contributing)

1. Fork it
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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.

###  Release Activity

Cadence

Every ~0 days

Total

13

Last Release

3766d ago

### Community

---

Top Contributors

[![robbiepaul](https://avatars.githubusercontent.com/u/2804149?v=4)](https://github.com/robbiepaul "robbiepaul (30 commits)")[![dinusuresh](https://avatars.githubusercontent.com/u/1288053?v=4)](https://github.com/dinusuresh "dinusuresh (2 commits)")

### Embed Badge

![Health badge](/badges/robbiep-afterthedeadline/health.svg)

```
[![Health](https://phpackages.com/badges/robbiep-afterthedeadline/health.svg)](https://phpackages.com/packages/robbiep-afterthedeadline)
```

PHPackages © 2026

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