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
@servers(['web' => 'user@example.com -p 1234']) | |
@task('deploy', ['on' => 'web']) | |
ls -la | |
@endtask |
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": { | |
"Vendor\\Package\\": "src/Vendor/Package" | |
} | |
} | |
} |
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 | |
interface SomeInterface | |
{ | |
public function forwardedCall($argument); | |
} | |
class Pre56BreakingInterface implements SomeInterface | |
{ | |
public function forwardedCall() |
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
var gulp = require('gulp'), | |
browserify = require('gulp-browserify'), | |
uglify = require('gulp-uglify'), | |
rename = require('gulp-rename'), | |
sass = require('gulp-sass'), | |
jshint = require('gulp-jshint'); | |
gulp.task('javascript', function () { | |
return gulp.src('assets/js/*.js') | |
.pipe(browserify({ |
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 | |
$ftp = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Ftp($settings)); | |
$local = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Local($path)); | |
$local->write($destination, $ftp->read($source)); |
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 | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Dropbox; | |
use League\Flysystem\Adapter\Local; | |
$dropbox = new Filesystem(new Dropbox($client, 'dropbox/root/dir')); | |
$local = new Filesystem(new Local('loca/root/path')); | |
$dropbox->write('destination.ext', $local->read('relative/path/to/file.ext')); |
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 | |
$client = S3Client::factory([ | |
'key' => '...', | |
'secret' => '...', | |
'region' => 'eu-west-1', | |
'version' => 'latest', | |
'debug' => 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
<?php | |
function append_to_file($location, $contents) | |
{ | |
$handle = fopen($location, 'a'); | |
defer fclose($handle); | |
// stuff stuff | |
frwite($handle, $contents); | |
} |
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 | |
class DomainListener | |
{ | |
public function handle(EventInterface $event) | |
{ | |
// PASS | |
} | |
public function handle(DomainEvent $event) |
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": "frankdejonge/tester", | |
"require": { | |
"doctrine/mongodb": "*" | |
}, | |
"minimun-stability": "dev", | |
"prefer-stable": true | |
} |