September 14, 2015 Meeting
##About Networks, connections and relationships
##PHPWomen
##Learning PHP
- CodeAcademy - get started here
- Learn X in Y Minutes - PHP - Quick PHP reference guide
- PHP The Right Way - Best Practices for PHP
##Composer Composer is the de-facto dependency / package manager for PHP.
- Composer Tutorial - Dependency Manager PHP
- Packagist - Composer Packages Repository
##Running PHP on Ubuntu For Ubuntu 14.04
$ sudo apt-get update
$ sudo apt-get install php5-cli
For older Ubuntu versions (add a PPA to get most recent version of PHP)
$ sudo add-apt-repository ppa:ondrej/php5-oldstable
$ sudo apt-get update
$ sudo apt-get install php5-cli
To run the built-in web server:
$ php -S localhost:8000
This will start a web server using the current folder as document root. If you have a index.php
file you just need point your browser to http://localhost:8000 and you should be able to access it :) any other php script in this folder can be accessed as http://localhost:8000/file.php
User Composer to install the package guzzle/guzzle. You will find the instructions to use this package on the project's README page. Try to create a simple page that gets a content from an external source and prints it on screen.
If you have time to go a bit further, you might play a bit with an open API that doesn't require authentication, like the eet.nu! Try something to fetch the results from https://api.eet.nu/venues?query=vegetarian
for instance. This function will help you convert the result to array: json_decode.
Happy Coding!