Skip to content

Instantly share code, notes, and snippets.

View lira92's full-sized avatar

Alan Lira lira92

View GitHub Profile
@lira92
lira92 / MinhaMigration.php
Last active May 4, 2016 03:36
Arquivo de Migration
<?php
use Phinx\Migration\AbstractMigration;
class PrimeiraMigration extends AbstractMigration
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
@lira92
lira92 / phinx.yml
Created May 4, 2016 03:05
Arquivo de configuração do Phinx
paths:
migrations: %%PHINX_CONFIG_DIR%%/db/migrations
seeds: %%PHINX_CONFIG_DIR%%/db/seeds
environments:
default_migration_table: phinxlog
default_database: development
production:
adapter: mysql
host: localhost
<?php
$mgClient = new Mailgun('YOUR_API_KEY');
$domain = "YOUR_DOMAIN_NAME";
$result = $mgClient->sendMessage($domain, array(
'from' => 'Remetente <mailgun@YOUR_DOMAIN_NAME>',
'to' => 'Destinatario <YOU@YOUR_DOMAIN_NAME>',
'subject' => 'Hello',
'text' => 'Testing some Mailgun awesomness!'
));
@lira92
lira92 / index.php
Created November 14, 2015 22:10 — forked from possamai/index.php
<div class="row">
<div class="col-md-12">
<div class="panel mb10">
<div class="panel-heading">
<div class="panel-title">
<i class="fa fa-picture-o"></i> <?PHP echo $title_for_layout . ': ' . $empresaLogada['Empresa']['nome_fantasia']; ?>
</div>
</div>
<div class="panel-body">