PHPackages                             oliverschloebe/google-spell-pspell - 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. oliverschloebe/google-spell-pspell

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

oliverschloebe/google-spell-pspell
==================================

A PHP Pspell substitute for Google Spell Check XML API.

8.0(1y ago)20610MITPHPPHP ~8.0

Since Aug 18Pushed 1y ago4 watchersCompare

[ Source](https://github.com/oliverschloebe/google-spell-pspell)[ Packagist](https://packagist.org/packages/oliverschloebe/google-spell-pspell)[ Fund](https://www.schloebe.de/donate/)[ RSS](/packages/oliverschloebe-google-spell-pspell/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

google-spell-pspell
===================

[](#google-spell-pspell)

[![License](https://camo.githubusercontent.com/4ce4e6c8d404cb48ef2fd40a6a9d2fb52c75c6875279126e48758a98f49861ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6c697665727363686c6f6562652f676f6f676c652d7370656c6c2d707370656c6c2e737667)](https://github.com/oliverschloebe/google-spell-pspell/blob/main/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/2b3e540e4bb2fc30ffab6214254a526e8c847f85383ef615ccfbb1f6c328739a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6c697665727363686c6f6562652f676f6f676c652d7370656c6c2d707370656c6c2e737667)](https://packagist.org/packages/oliverschloebe/google-spell-pspell)[![Latest Version](https://camo.githubusercontent.com/66ed06e9138e2fcf2fba094ddf8be460c8b1f150021b363ece54be9c20de2946/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f6c697665727363686c6f6562652f676f6f676c652d7370656c6c2d707370656c6c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/oliverschloebe/google-spell-pspell/releases)[![Source Code](https://camo.githubusercontent.com/6cc3b6887a68ecc08a2f9759a13f9d84723d7138d721fc200746e3e5ab431e3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6f6c697665727363686c6f6562652f676f6f676c652d2d7370656c6c2d2d707370656c6c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/oliverschloebe/google-spell-pspell)

A PHP Pspell substitute for Google Spell Check XML API. Pspell is required in order to work on your server.

Why?
----

[](#why)

Google obviously shut down their Spell checking API ([www.google.com/tbproxy/spell](http://www.google.com/tbproxy/spell)) on July 9th 2013, see [here](http://productforums.google.com/forum/#!topic/chat/CPb0PYllbE8). This PHP class is a PHP Pspell substitute for Google Spell Check XML API using the same XML structure.

Usage
-----

[](#usage)

```
require_once 'spell-check-library.php';
$content = "";
$options = array(
	"lang"				=> 'en',
	"maxSuggestions"		=> 10,
	"customDict"			=> 0,
	"charset"			=> 'utf-8'
);
$factory = new SpellChecker($options);

$spell = $factory->create(trim("Ths is a tst"));

header('Content-Type: text/xml; charset=UTF-8');
echo $spell->toXML();
```

Echoes Google-style XML like this:

```

    This Th's Thus Th HS
    test tat ST St st

```

... which you can use with your existing spell checking script such as GoogieSpell that was expecting XML structured data back from Google.

Bugs/Suggestions
----------------

[](#bugssuggestions)

If you find a bug, or would like to contribute to the project please use the [Issue Tracker](https://github.com/AlphawolfWMP/google-spell-pspell/issues) over at my GitHub project page.

Credits
-------

[](#credits)

Mad props to [Sabin Iacob (m0n5t3r)](http://m0n5t3r.info). Code basically from [here](http://plugins.svn.wordpress.org/ajax-spell-checker/trunk/service/spell-check-library.php), but I removed the Aspell and Google API parts and made it standalone-ready.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/111d5154eea89c672a6024cacaefd8260f7541601960993940e0b3cf9c0ca5a7?d=identicon)[cyberblitzbirne](/maintainers/cyberblitzbirne)

---

Top Contributors

[![oliverschloebe](https://avatars.githubusercontent.com/u/82846?v=4)](https://github.com/oliverschloebe "oliverschloebe (9 commits)")

---

Tags

google-spell-pspellphpphp-pspell-substitutepspellxml-structurephppspellaspellgoogiespell

### Embed Badge

![Health badge](/badges/oliverschloebe-google-spell-pspell/health.svg)

```
[![Health](https://phpackages.com/badges/oliverschloebe-google-spell-pspell/health.svg)](https://phpackages.com/packages/oliverschloebe-google-spell-pspell)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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