Rnd Librarys

2017-02-19 21:02:15 PHP, DEV, LARAVEL

random Classes

Just some reminders for myself about stuff i find

Intervention [http://image.intervention.io/] PHP Image modification


Setup a Laravel dev machine

2017-02-06 19:44:51 PHP, DEV, NODE, LUNUX, SYSTEM, LARAVEL

Install required tools to develop Laravel Pages localy with MySQL.

# MySQL 

sudo apt install mysql-server

# PHP

sudo apt install libnss3-tools jq xsel
sudo apt install php php-cli php-common php-curl php-json php-mbstring php-mcrypt php-mysql php-opcache php-readline php-xml php-zip php-mysql

# Composer

get install from https://getcomposer.org/download/

mv composer.phar /usr/local/bin/composer

# Laravel Globaly

composer global require "laravel/installer"

echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc

source ~/.bashrc

# NPM/Node

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt install -y nodejs  build-essential

sudo npm install -g gulp


# Optional webAdminInterface for sql

wget https://github.com/vrana/adminer/releases/download/v4.2.5/adminer-4.2.5-mysql.php
wget https://raw.githubusercontent.com/pappu687/adminer-theme/master/adminer.css

with a custom css-file for some nice styling =P

Done.

now just


laravel new <NAME> 
cd <NAME>
npm install

Over and out :)