This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require dirname(__DIR__) . '/vendor/autoload.php'; | |
use HeroProject\Connection; | |
$connection = new Connection(); | |
$connection->echoThis('Composer is pretty cool!'); | |
#-------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hero; | |
/** | |
* Class QueryBuilder | |
* @package Hero | |
*/ | |
class QueryBuilder | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hero; | |
/** | |
* Class QueryBuilder | |
* @package Hero | |
*/ | |
class QueryBuilder | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hero; | |
use \PDO; | |
use \PDOStatement; | |
use \Exception; | |
/** | |
* Class Connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hero; | |
/** | |
* Class QueryBuilder | |
* @package Hero | |
* @method QueryBuilder table (string $table) | |
* @method QueryBuilder join (string $join) | |
* @method QueryBuilder fields (array $fields) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hero; | |
/** | |
* Class QueryBuilder | |
* @package Hero | |
* @method QueryBuilder table (string $table) | |
* @method QueryBuilder join (string $join) | |
* @method QueryBuilder fields (array $fields) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require dirname(__DIR__) . '/vendor/autoload.php'; | |
/** @noinspection PhpIncludeInspection */ | |
$options = include dirname(__DIR__) . '/config/database.php'; | |
$qb = new Hero\QueryBuilder($options); | |
#INSERT | |
$qb |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.