Skip to content

Instantly share code, notes, and snippets.

{
"results": [
{
"name": "laravel/framework",
"description": "The Laravel Framework.",
"url": "https://packagist.org/packages/laravel/framework",
"downloads": 6493,
"favers": 4
},
{
{
"packageNames": [
"illuminate/auth",
"illuminate/cache",
"illuminate/config",
"illuminate/console",
"illuminate/container",
"illuminate/cookie",
"illuminate/database",
"illuminate/encryption",
@matula
matula / gist:4454829
Last active December 10, 2015 15:29
A simple PHP function that take an array of CSS values and puts them into relevant media queries
<?php
function parseCss($css = array()) {
// Init
$return = array();
// Set the break points here
$return['default'] = '';
$return['tablet'] = '@media only screen and (max-width : 1024px) {';
$return['phone'] = '@media only screen and (min-width : 320px) and (max-width : 480px) {';