Skip to content

Instantly share code, notes, and snippets.

View wilcorrea's full-sized avatar
🚀
// TODO: be life good

William Correa wilcorrea

🚀
// TODO: be life good
View GitHub Profile
<?php
require dirname(__DIR__) . '/vendor/autoload.php';
use HeroProject\Connection;
$connection = new Connection();
$connection->echoThis('Composer is pretty cool!');
#--------
{
"name": "phpzm/core",
"description": "Simples Core package",
"minimum-stability": "dev",
"keywords": ["php","micro service", "api", "resource", "gennesis.io"],
"homepage": "https://github.com/phpzm/core",
"license": "MIT",
"version": "0.0.6",
"type": "package",
"authors": [
<?php
namespace Hero;
/**
* Class QueryBuilder
* @package Hero
*/
class QueryBuilder
{
<?php
namespace Hero;
/**
* Class QueryBuilder
* @package Hero
*/
class QueryBuilder
{
<?php
namespace Hero;
use \PDO;
use \PDOStatement;
use \Exception;
/**
* Class Connection
CREATE TABLE `users` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(255) NOT NULL,
`login` VARCHAR(255) NOT NULL,
`password` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
);
<?php
namespace Hero;
/**
* Class QueryBuilder
* @package Hero
* @method QueryBuilder table (string $table)
* @method QueryBuilder join (string $join)
* @method QueryBuilder fields (array $fields)
<?php
namespace Hero;
/**
* Class QueryBuilder
* @package Hero
* @method QueryBuilder table (string $table)
* @method QueryBuilder join (string $join)
* @method QueryBuilder fields (array $fields)
<?php
require dirname(__DIR__) . '/vendor/autoload.php';
/** @noinspection PhpIncludeInspection */
$options = include dirname(__DIR__) . '/config/database.php';
$qb = new Hero\QueryBuilder($options);
#INSERT
$qb
@wilcorrea
wilcorrea / mg.svg
Created November 23, 2016 14:25 — forked from gabsprates/mg.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.