A curated list of amazingly awesome PHP libraries, resources and shiny things.
- Composer
- Composer Related
- Frameworks
- Framework Components
<?php | |
//in app.php | |
//need our validator class that allows to retrieve dorPlaceholder to properly | |
//process custom check fields, cause dots in field names are replaced by Laravel | |
$app->make('validator')->resolver(function($translator, $data, $rules, $messages) | |
{ | |
// return our custom validator here | |
//@see https://laracasts.com/discuss/channels/laravel/how-do-i-override-this-specific-method-in-validator-class?page=1&replyId=152603 | |
return new \App\Validators\Validator($translator, $data, $rules, $messages); |
<?php | |
//in app.php | |
$app->register(new Silex\Provider\ValidatorServiceProvider(), array( | |
'validator.validator_service_ids' => array( | |
'vat.validator' => 'vat.validator', | |
) | |
)); | |
//in contrain class |
import { | |
HttpErrorResponse, | |
HttpEvent, | |
HttpHandler, | |
HttpInterceptor, | |
HttpRequest, | |
HttpResponse | |
} from '@angular/common/http'; | |
import {Observable} from 'rxjs/Observable'; | |
import {MatDialog} from '@angular/material'; |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
Опять, растяпа я, невинность потеряла... | |
От вашей пошлости со мной оргазм случится! | |
Хотелось кончить на мажорной ноте | |
Я как то не слегка завозбудилась | |
А Вам к лицу пойдут рога погуще... | |
Застукали его все в том же шкафе... | |
Допей стакан и возвернись в семью! | |
Любимая, не плачь... Найдём тебе мужчину. | |
Поизносилось то, в чём мама родила... | |
Да, невесёлым получился некролог... |
<html> | |
<head> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> | |
</head> | |
<body> | |
<?php | |
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') { | |
$urls = explode("\r",$_POST['urls'] ); | |
$keywords = explode("\r", $_POST['keywords']); |
app/ | |
cache/ | |
config/ | |
logs/ | |
Resources/ | |
bin/ | |
src/ | |
Acme/ | |
DemoBundle/ | |
Controller/ |
getLatestTweets(function(t) { | |
var users = t.map('user').unique(); | |
var total = users.sum('statuses_count').format(); | |
var top = users.max('followers_count').first(); | |
var count = top.followers_count.format(); | |
var since = Date.create(top.created_at); | |
return users.length + ' users with a total of ' + total + ' tweets.\n' + | |
top.screen_name + ' is the top with ' + count + ' followers\n' + | |
'and started tweeting ' + since.relative() + '.'; | |
}); |