Skip to content

Instantly share code, notes, and snippets.

View 0test's full-sized avatar

Andrey 0test

View GitHub Profile
@gabbydgab
gabbydgab / routing.php
Created September 2, 2017 13:12
Route Model Binding in Laravel Package
<?php
/**
* Following binding works!
*/
namespace MyPackage\Model;
class User
{
}
@baamenabar
baamenabar / curl_get_or_save_functions.php
Created September 10, 2012 13:59
PHP cURL get or save simple stuff
<?php
/****************************************************************************
PHP CURL functions for getting data or asytnchronously saving it to file.
It is header redirect tolerant. like the 302 http status.
Save data to file with cURL: save_data_to_file_w_curl($url,$pathToFile);
Get data with cURL get_data_w_curl($url);
/**
* MIT License