responsive-youtube.js for use with YouTube Player API
<iframe width="100%" src="https://www.youtube.com/embed/<video ID>" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
install simple-copy.js for use clipboard with dom and texts
php artisan serve with .env and APP_URL

Install teeny in Node.js projects

Advantages of using Teeny.js

using teeny routing system with golang
go get -u github.com/inphinit/teeny.go

installing teeny route system with composer
composer create-project inphinit/teeny <project name>
composer create-project inphinit/teeny blog

Download without composer

<?php
use Inphinit\Http\Request;

Obtendo o caminho HTTP

<?php
namespace Controller;
use Inphinit\Http\Request;class Examples
{
public function foo()
{
return 'Caminho/rota atual: ' . Request::path(true);
}
}
public function foo()
{
return…
<?php
use Inphinit\Experimental\Redirect;

Redirecionando para um caminho na aplicação

<?php
use Inphinit\Routing\Route;
use Inphinit\Experimental\Http\Redirect;
Route::set('GET', '/', function () {
Redirect::to('baz'); //irá redirecionar para http://localhost/baz

Uso básico

<?php
use Inphinit\App;
use Inphinit\Routing\Route;
//Rota Index, o ANY permite qualquer método HTTP
Route::set('ANY', '/', 'Home:index');
//Closure
Route::set('ANY', '/closure', function () {
return 'Olá, Mundo!';
});
//Closure e use
$data = 'Mary';
Route::set('ANY', '/closure-use', function () use…

Guilherme Nascimento

php, javascript, mysql, python, html5, css3, html, css, jquery / https://inphinit.github.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store