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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true |
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
use WebDevBr\Slack\Slack; | |
$email = filter_input(INPUT_POST, 'email'); //aqui você pega o usuário da pessoa | |
$data = [ | |
'email'=>$email, | |
]; | |
$token_and_user = [ | |
'token'=>'xoxp-xxxx-xxx-xxxxx-xxxxxxxxxxxxxxx', //o seu token |
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
"require": { | |
"webdevbr/slack-api": "dev-master" | |
} |
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 | |
//rota | |
Route::get('user/{id}', 'UserController@showProfile'); | |
//controller | |
namespace App\Http\Controllers; | |
use App\User; |
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
teste |
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 App\Controller; | |
use Cart\Model\Table\Cart; | |
use Cake\Network\Exception\NotFoundException; | |
class CartController extends AppController { | |
public function index() |
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
<ion-tabs class="tabs-icon-top tabs-color-active-positive"> | |
<ion-tab title="Tarefas" icon-off="ion-ios-list-outline" icon-on="ion-ios-list" href="#/tab/list"> | |
<ion-nav-view name="tab-list"></ion nav-view> | |
</ion-tab> | |
<ion-tab title="Nova Tarefa" icon-off="ion-plus" icon-on="ion-plus-circled" href="#/tab/new"> | |
<ion nav-view name="tab-new"></ion nav-view> | |
</ion-tab> | |
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
# Lista PHP com 520+ de tudo o que você pode precisar | |
Nesta lista você vai encontrar tudo o que possa precisar no seu dia a dia enquanto trabalha com PHP, ela é mantida pelo [Jamie York](https://github.com/ziadoz) e atualmente está disponível em inglês aqui: <https://github.com/ziadoz/awesome-php> | |
Vou tentar manter atualizada com a versão inglês. | |
## Gerenciamento de dependências | |
*Bibliotecas para gerenciamento de pacotes e dependências* | |
* [Composer](https://getcomposer.org/)/[Packagist](https://packagist.org/) - Um gerenciador de pacotes e de dependência. |
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 App\Controller; | |
use Cart\Model\Table\Cart; | |
use Cake\Network\Exception\NotFoundException; | |
use correioXml\Correios\Configure; | |
class CartController extends AppController { | |
public function index() |
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
"autoload": { | |
"psr-4": { | |
"App\\": "src", | |
"CorreioXml\\": "correioXml/src" | |
} | |
}, | |
"autoload-dev": { | |
"psr-4": { | |
"App\\Test\\": "tests", | |
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests", |