namp2

Not another MP2 a.k.a MP3 done the right way.

Requirements.

  • PHP >=5.3.6 (production).
  • PHP >=5.5 (dev).

Install.

  • Clone the repo in wp-content/plugins.
  • Install PHP (OSX comes with it).
  • Install NodeJS.
  • Install composer.
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
  • Install dependencies.
$ php composer.phar install
  • Instal NPM
$ npm install npm -g
  • Install Stylus
$ npm install stylus -g

Structure.

  • /assets CSS and JS.

  • /lang Language files.

  • /lib MailPoet classes. All classes are autoloaded, under the MailPoet namespace.

namespace \MailPoet\Models;
class Subscriber {}
$subscriber = new \MailPoet\Models\Subscriber();
  • /tests Acceptance and spec tests.

  • /mailpoet.php Kickstart file.

Unit testing.

Unit tests are in /tests/unit. You can just duplicate a Cest file and start testing. Methods available for testing come from Verify: https://github.com/Codeception/Verify

$ vendor/bin/codecept run

Acceptance testing.

You just need phantomjs installed. Tests are in /tests/acceptance. You can run tests with:

$ vendor/bin/codecept run

Stylus command

stylus -w assets/css/src/*.styl -o assets/css/

Description
I refuse to pay money to send emails from my own damn email server.
Readme 368 MiB
5.12.4-pirate Latest
2025-06-03 02:30:47 +00:00
Languages
PHP 73.2%
TypeScript 12.8%
JavaScript 7.7%
SCSS 2.5%
HTML 2%
Other 1.7%