PHPackages                             rbdwllr/atlantic-city - 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. rbdwllr/atlantic-city

ActiveWordpress-plugin

rbdwllr/atlantic-city
=====================

A replica of the default WordPress plugin Hello Dolly, but for composer powered WordPress and for the song Atlantic City.

0.3.0(5y ago)533921MITPHPPHP &gt;=7.4.0

Since May 28Pushed 5y agoCompare

[ Source](https://github.com/RobDWaller/atlantic-city)[ Packagist](https://packagist.org/packages/rbdwllr/atlantic-city)[ RSS](/packages/rbdwllr-atlantic-city/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (5)Used By (1)

Atlantic City
=============

[](#atlantic-city)

[![Actions Status](https://github.com/robdwaller/atlantic-city/workflows/ci/badge.svg)](https://github.com/robdwaller/atlantic-city/actions) [![codecov](https://camo.githubusercontent.com/7cce53a1510eff16ef1a36064a0e65c698afa4199daa0f3137270a28a5cb0d3b/68747470733a2f2f636f6465636f762e696f2f67682f526f624457616c6c65722f61746c616e7469632d636974792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/RobDWaller/atlantic-city) [![PHP Version Support](https://camo.githubusercontent.com/e25c3f2e6aed9746078552899bdb9144392306d4e700e111324cac610999f6ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f726264776c6c722f61746c616e7469632d63697479)](https://camo.githubusercontent.com/e25c3f2e6aed9746078552899bdb9144392306d4e700e111324cac610999f6ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f726264776c6c722f61746c616e7469632d63697479)

A Composer based WordPress plugin which displays lyrics from the song [Atlantic City](https://en.wikipedia.org/wiki/Atlantic_City_(song)) in the WordPress admin.

This plugin was created to show developers how to create WordPress plugins which are hosted on [Packagist](https://packagist.org/) and work with Composer friendly WordPress frameworks like [Dusty](https://packagist.org/packages/rbdwllr/dusty).

It also highlights how to write unit tests for WordPress plugins using [WP\_Mock](https://packagist.org/packages/10up/wp_mock) and how to integrate with static analysis tools like [PHPStan](https://packagist.org/packages/phpstan/phpstan).

Composer Setup
--------------

[](#composer-setup)

There is only one difference between a WordPress plugin built with Composer compared to a standard PHP package, which is the package type. With WordPress plugins you set the type to `wordpress-plugin` in the [Composer.json file](https://github.com/RobDWaller/atlantic-city/blob/master/composer.json).

```
"type": "wordpress-plugin",
```

This simply tells Composer friendly WordPress frameworks how to handle the package, instead of putting the package in the vendor folder it will put the package in the WordPress plugins directory. See [WPackagist](https://wpackagist.org/) for more details on this.

Unit Tests with WP\_Mock
------------------------

[](#unit-tests-with-wp_mock)

To write unit tests for WordPress you need to use a package called [WP\_Mock](https://packagist.org/packages/10up/wp_mock). It is an extension of PHP Unit which allows you to mock WordPress custom function calls.

For instance this library's [unit tests](https://github.com/RobDWaller/atlantic-city/blob/master/tests/AtlanticCityTest.php) mock the `is_rtl()` function which tells WordPress if the site's text runs from right to left or left to right.

```
WP_Mock::userFunction('is_rtl', [
    'times' => 1,
    'return' => false
]);
```

To use WP\_Mock you need to create a custom [bootstrap file](https://github.com/RobDWaller/atlantic-city/blob/master/tests/bootstrap.php) and extend the WP\_Mock test case class rather than the PHP Unit one.

```
namespace Tests;

use App\MyWordPressCode;
use WP_Mock\Tools\TestCase;
use WP_Mock;

class MyWordPressTests extends TestCase
{
    ...
}
```

WP\_Mock also comes with some nice features which allow you to check whether WordPress actions or filters have been called.

```
WP_Mock::expectActionAdded('action', 'parameters');
```

Other Code Analysis Tools
-------------------------

[](#other-code-analysis-tools)

This plugin integrates with a number of static analysis tools, including [PHP Code Sniffer](https://packagist.org/packages/squizlabs/php_codesniffer) and [PHP Mess Detection](https://packagist.org/packages/phpmd/phpmd), which will help improve the code quality of the WordPress plugins you produce.

It also shows you how to integrate with [PHPStan](https://phpstan.org) to add some type safety to your code. This requires a small amount of customisation to handle WordPress so there is a [configuration file](/phpstan.neon.dist) and an integration with the [szepeviktor/phpstan-wordpress](https://packagist.org/packages/szepeviktor/phpstan-wordpress) package which extends PHPStan for WordPress.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.3% 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 ~182 days

Total

4

Last Release

1992d ago

PHP version history (2 changes)0.2.0PHP &gt;=7.1.0

0.3.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/634080?v=4)[Rob Waller](/maintainers/RobDWaller)[@RobDWaller](https://github.com/RobDWaller)

---

Top Contributors

[![RobDWaller](https://avatars.githubusercontent.com/u/634080?v=4)](https://github.com/RobDWaller "RobDWaller (50 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (3 commits)")

---

Tags

composercomposer-packagewordpresswordpress-plugin

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rbdwllr-atlantic-city/health.svg)

```
[![Health](https://phpackages.com/badges/rbdwllr-atlantic-city/health.svg)](https://phpackages.com/packages/rbdwllr-atlantic-city)
```

PHPackages © 2026

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