PHPackages                             andydixon/pornolize - 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. andydixon/pornolize

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

andydixon/pornolize
===================

PHP Translator used for pornolize.com to vulgarise text

1.1.0(7y ago)526[1 issues](https://github.com/andydixon/pornolize/issues)CC-BY-NC-ND-4.0PHPPHP &gt;=7.0.0

Since Mar 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/andydixon/pornolize)[ Packagist](https://packagist.org/packages/andydixon/pornolize)[ RSS](/packages/andydixon-pornolize/feed)WikiDiscussions master Synced 1w ago

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

pornolize - Pornolize Text Like A Boss
======================================

[](#pornolize---pornolize-text-like-a-boss)

[![ ](https://camo.githubusercontent.com/fa6ebe62c23ca1fc168827ed851dc7a69a56e5164cdd60f981a79cfb6d350f90/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64796469786f6e2f706f726e6f6c697a652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/fa6ebe62c23ca1fc168827ed851dc7a69a56e5164cdd60f981a79cfb6d350f90/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64796469786f6e2f706f726e6f6c697a652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) [![ ](https://camo.githubusercontent.com/f4a58b06cc7f6f131ececb5664bcd62d9fbacd5633c489ec275b0adda55bea2f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64796469786f6e2f706f726e6f6c697a652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://camo.githubusercontent.com/f4a58b06cc7f6f131ececb5664bcd62d9fbacd5633c489ec275b0adda55bea2f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64796469786f6e2f706f726e6f6c697a652f6261646765732f6275696c642e706e673f623d6d6173746572)

This code originated from the original back-end code on [The Pornolizer](http://www.pornolize.com) but has been redeveloped into a composer compatible module free to use and abuse.

### To install

[](#to-install)

`composer require "andydixon/pornolize 1.*"`

### To Use

[](#to-use)

The pornolization process is split into two parts - name pornolization and text pornolization. The following example will pornolize the text held in $text :

```

require_once __DIR__ . '/vendor/autoload.php';

$text = "The domestic goat or simply goat (Capra aegagrus hircus) is a subspecies of C. aegagrus domesticated from the wild goat of Southwest Asia and Eastern Europe. The goat is a member of the animal family Bovidae and the goat—antelope subfamily Caprinae, meaning it is closely related to the sheep. There are over 300 distinct breeds of goat. Goats are one of the oldest domesticated species of animal, and have been used for milk, meat, fur, and skins across much of the world. Milk from goats is often turned into goat cheese.";

$language = "en"; // can be one of 'dk', 'de', 'en', 'es', 'hr', 'hu', 'no', 'se'

try {

	// Pornolize any names that may exist
	$translator = Pornolize\NameTranslator::make($text, $language, 50);
	$text=$translator->translate()->__toString();

	// Pornolize main content
	$translator = Pornolize\ProseTranslator::make($text, $language, 50);
	$text = $translator->translate()->__toString();

	echo $text;

} catch (PornolizerDictionaryException $e) {    // Thrown if a dictionary file cant be found
	echo $lang . "'s dictionary does not exist";
} catch (PornolizerSwearabilityException $e) {  // Thrown if you make it outside of 0-100
    echo $e->getMessage();
}

```

The code above is pretty much self explanatory (I'm no good at writing documentation for the average human), however for any Translator object, the final option changes how abusive the text can be, the higher the better more words are added.

Changes and improvements are welcome, just send me a pull request for review.

Any questions can be dropped to me by email - ajdixon0283 at outlook dot com, but you will get what you give - obnoxiousness will incur wrath, and additional wrath can be provided to those who have their cranium lodged in their rectums free of charge.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~3 days

Total

2

Last Release

2632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6efc9edc7692cf97c6b88d487fbbb9d80e075fefe618ae888219233b5800af82?d=identicon)[andydixon](/maintainers/andydixon)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/andydixon-pornolize/health.svg)

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

###  Alternatives

[96qbhy/tt-microapp

字节跳动小程序sdk

728.9k](/packages/96qbhy-tt-microapp)[madeitbelgium/wappalyzer

PHP Library that uncovers the technologies used on websites.

1417.5k](/packages/madeitbelgium-wappalyzer)

PHPackages © 2026

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