Skip to content
Permalink
Browse files

First stable release. Kinda untested, but I'll be testing it with Til…

…meld. Use with caution.
  • Loading branch information...
hperrin committed Jun 17, 2017
1 parent 9aae4c2 commit 2680999f684363d97939bbaf00521e8b762fc3a1
@@ -1,2 +1,3 @@
vendor
bower_components
vendor/
bower_components/
node_modules/
366 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,4 +1,4 @@
umailphp
µMailPHP
========

µMailPHP - PHP email templating system.
PHP email templating system.
@@ -1,12 +1,12 @@
{
"name": "umailphp",
"description": "A PHP email templating system.",
"version": "1.0.0-alpha.2",
"version": "1.0.0",
"authors": [
"Hunter Perrin <hunter@sciactive.com>"
],
"main": "src/setupApp.js",
"license": "LGPL",
"license": "Apache-2.0",
"ignore": [
"**/.*",
"node_modules",
@@ -1,8 +1,8 @@
{
"name": "sciactive/umailphp",
"description": "A PHP email templating system.",
"version": "1.0.0-alpha.2",
"time": "2015-03-24",
"version": "1.0.0",
"time": "2017-06-16",
"homepage": "http://umailphp.org/",
"type": "library",
"authors": [
@@ -17,7 +17,7 @@
"email",
"templating"
],
"license": "LGPL",
"license": "Apache-2.0",
"support": {
"issues": "https://github.com/sciactive/umailphp/issues",
"wiki": "https://github.com/sciactive/umailphp/wiki",
@@ -38,14 +38,14 @@
},
"autoload": {
"psr-0": {
"µMailPHP\\": "src/"
"uMailPHP\\": "src/"
},
"psr-4": {
"µMailPHP\\": "src/"
"uMailPHP\\": "src/"
}
},
"require": {
"sciactive/requirephp": "~1.3",
"sciactive/nymph-server": "dev-master"
"sciactive/nymph-server": "~1.5.1"
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,9 +1,10 @@
<?php
/**
* µMailPHP's configuration defaults.
* uMailPHP's configuration defaults.
*
* @package uMailPHP
* @license http://www.gnu.org/licenses/lgpl.html
* @license https://www.apache.org/licenses/LICENSE-2.0
* @author Hunter Perrin <hperrin@gmail.com>
* @copyright SciActive.com
* @link http://sciactive.com/
@@ -45,4 +46,4 @@
'description' => 'If your emails are not being sent correctly, try removing this option.',
'value' => '-femail@example.com',
],
];
];
@@ -1,11 +1,12 @@
<?php namespace µMailPHP;
<?php
namespace uMailPHP;
/**
* Example definition class.
*/
class UserVerifyMail extends \µMailPHP\Definition {
public static $cname = 'Verify Email';
class UserVerifyMail extends \uMailPHP\Definition {
public static $cname = 'Verify Email (Example)';
public static $description = 'This email is sent to a new user to let them verify their address.';
public static $expectsRecipient = true;
public static $macros = [
@@ -36,6 +37,6 @@ public static function getSubject() {
}
public static function getHTML() {
return 'todo';
return 'This is an example definition.';
}
}
@@ -7,15 +7,14 @@
date_default_timezone_set('America/Los_Angeles');
\SciActive\RequirePHP::_('NymphConfig', [], function(){
$nymph_config = include(__DIR__.DIRECTORY_SEPARATOR.'../vendor/sciactive/nymph/conf/defaults.php');
$nymph_config->MySQL->database['value'] = 'nymph_test';
$nymph_config->MySQL->user['value'] = 'nymph_test';
$nymph_config->MySQL->password['value'] = 'omgomg';
return $nymph_config;
});
\Nymph\Nymph::configure([
'MySQL' => [
'host' => '127.0.0.1',
'database' => 'nymph_example',
'user' => 'nymph_example',
'password' => 'omgomg'
]
]);
$NymphREST = new \Nymph\REST();
@@ -28,4 +27,4 @@
}
} catch (\Nymph\Exceptions\QueryFailedException $e) {
echo $e->getMessage()."\n\n".$e->getQuery();
}
}
@@ -7,10 +7,10 @@
date_default_timezone_set('America/Los_Angeles');
// µMailPHP's config.
\SciActive\RequirePHP::_('µMailPHPConfig', [], function(){
// uMailPHP's config.
\SciActive\RequirePHP::_('uMailPHPConfig', [], function () {
$config = include('../conf/defaults.php');
$config->site_name['value'] = 'µMailPHP Example Site';
$config->site_name['value'] = 'uMailPHP Example Site';
$config->site_link['value'] = 'http://localhost/umailphp/';
$config->master_address['value'] = 'hperrin@gmail.com';
$config->testing_mode['value'] = true;
@@ -20,7 +20,7 @@
// This is how you enter the setup app.
include 'UserVerifyMail.php'; // Make sure all of your definition classes are loaded.
$baseURL = '../'; // This is the URL of the µMailPHP root.
$sciactiveBaseURL = '../bower_components/'; // This is the URL of the SciActive libraries.
$baseURL = '../'; // This is the URL of the uMailPHP root.
$sciactiveBaseURL = '../node_modules/'; // This is the URL of the SciActive libraries.
$restEndpoint = 'rest.php'; // This is the URL of the Nymph endpoint.
include '../src/setup.php'; // And this will load the µMailPHP setup app.
include '../src/setup.php'; // And this will load the uMailPHP setup app.
@@ -2,13 +2,13 @@
<h2 style="margin-top: 0;">Email Instructions <small>Some help for setting up this awesome email system.</small></h2>
</div>
<div>
Welcome to µMailPHP. This program handles email templates. It can be a
Welcome to uMailPHP. This program handles email templates. It can be a
little tricky to set up, so read through these instructions carefully.
</div>
<div class="page-header">
<h3>How It Works</h3>
</div>
To use µMailPHP to its full potential, you must first know how it works.
To use uMailPHP to its full potential, you must first know how it works.
This system constructs emails using three parts:
<ul>
<li>The template.</li>
@@ -170,7 +170,7 @@ <h3>Content</h3>
<td>N/A</td>
</tr>
<tr>
<td rowspan="3">Site</td>
<td rowspan="2">Site</td>
<td>#site_name#</td>
<td>The system name.</td>
<td>{{examples['site_name']}}</td>
@@ -307,4 +307,4 @@ <h3>Content</h3>
<span ng-if="success" class="label label-success">Successfully saved!</span>
</div>
</div>
</form>
</form>
@@ -70,7 +70,7 @@ <h3>Content</h3>
<td>N/A</td>
</tr>
<tr>
<td rowspan="3">Site</td>
<td rowspan="2">Site</td>
<td>#site_name#</td>
<td>The system name.</td>
<td>{{examples['site_name']}}</td>
@@ -267,4 +267,4 @@ <h3>Email Document</h3>
<span ng-if="success" class="label label-success">Successfully saved!</span>
</div>
</div>
</form>
</form>
@@ -0,0 +1,31 @@
{
"name": "umailphp",
"version": "1.0.0",
"description": "PHP email templating system.",
"main": "src/autoload.php",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sciactive/umailphp.git"
},
"keywords": [
"email",
"templating",
"php"
],
"author": "Hunter Perrin <hperrin@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/sciactive/umailphp/issues"
},
"homepage": "https://github.com/sciactive/umailphp#readme",
"dependencies": {
"nymph-client": "^1.5.1",
"pform": "^3.2.2"
}
}
@@ -1,9 +1,11 @@
<?php namespace µMailPHP;
<?php
namespace uMailPHP;
/**
* Definition class.
*
* @package uMailPHP
* @license http://www.gnu.org/licenses/lgpl.html
* @license https://www.apache.org/licenses/LICENSE-2.0
* @author Hunter Perrin <hperrin@gmail.com>
* @copyright SciActive.com
* @link http://sciactive.com/
@@ -41,4 +43,4 @@ abstract class Definition implements DefinitionInterface {
* @public array
*/
public static $macros = [];
}
}
@@ -1,9 +1,11 @@
<?php namespace µMailPHP;
<?php
namespace uMailPHP;
/**
* Definition interface.
*
* @package uMailPHP
* @license http://www.gnu.org/licenses/lgpl.html
* @license https://www.apache.org/licenses/LICENSE-2.0
* @author Hunter Perrin <hperrin@gmail.com>
* @copyright SciActive.com
* @link http://sciactive.com/
@@ -37,4 +39,4 @@ public static function getHTML();
* @return string|null The text content in UTF-8 encoding.
*
public static function getText();*/
}
}
Oops, something went wrong.

0 comments on commit 2680999

Please sign in to comment.
You can’t perform that action at this time.