A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
- name: "Copy some file" | |
copy: | |
src=file-name.ext | |
dest=/tmp | |
owner=root | |
group=root | |
mode=0775 | |
tags: | |
- tag |
public function execute(InputInterface $input, OutputInterface $output) | |
{ | |
copy(__DIR__.'/stubs/LocalizedVagrantfile', $this->basePath.'/Vagrantfile'); | |
if (!file_exists($this->basePath.'/Homestead.yaml')) { | |
copy( __DIR__ . '/stubs/Homestead.yaml', $this->basePath . '/Homestead.yaml' ); | |
} | |
else | |
{ | |
$this->error('Homestead.yaml exists, please delete this file before continuing.'); |
vagrant destroy -f && vagrant up ─(07/10/15)─┘ | |
==> default: Forcing shutdown of VM... | |
==> default: Destroying VM and associated drives... | |
==> default: Running cleanup tasks for 'ansible' provisioner... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'ubuntu/trusty64'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'ubuntu/trusty64' is up to date... | |
==> default: Setting the name of the VM: ansible-octane_default_1436561486014_32479 | |
==> default: Clearing any previously set forwarded ports... |
array(4) { | |
[0]=> | |
array(5) { | |
["id"]=> | |
int(339) | |
["name"]=> | |
string(7) "Item 1" | |
["date"]=> | |
string(19) "2015-04-16 16:09:40" | |
["clicks"]=> |
A list of amazingly awesome PHP libraries, resources and shiny things.
Verifying that +joepferguson is my blockchain ID. https://onename.com/joepferguson |
Adventures in Laravel 5 - Joe Ferguson -
If you want to follow along and work on the exercises your laptop or VM will need:
Vagrant + VirtualBox would be easier but are not required.
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class ComposerServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register bindings in the container. |
<html lang="fi"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
table { width: 100%; } | |
</style> | |
</head> | |
<body> | |
<form action="<? $_SERVER['PHP_SELF'] ?>" method="post"> |
<?php | |
/** | |
App stuff | |
**/ | |
$container['db'] = function ($container) { | |
$capsule = new \Illuminate\Database\Capsule\Manager; | |
$capsule->addConnection([ | |
'driver' => 'mysql', |