• Stars
    star
    109
  • Rank 317,103 (Top 7 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Llum (light in catalan language) illuminates your Laravel projects speeding up your Github/Laravel development workflow

llum

Speed up you Github/Laravel development workflow illuminating packages with llum:

asciicast

Total Downloads Latest Stable Version Scrutinizer Code Quality Build Status StyleCI Build Status

Now supports Laravel 5.4.

See also:

Install notes

composer global require "acacha/llum=~1.0"

Requirements

Some commands use bash commands like GNU sed and touch.On Windows you can use CygWin or see StackOverflow

On MAC OS use GNU sed instead of default installed BSD sed

brew install gnu-sed --with-default-names

Commands

init

Execute:

llum init
Please enter your github username (sergi) ? 
Do you want to use our assistant to obtain token via Github API (Y/n)?Y
Github password?

To configure your Bithub user and obtain a token to interact with github using llum commands (see github command section below). This command creates file ~/.llumrc , an example:

~ cat .llumrc 
; Llum configuration file

[github]
username = acacha
token = token_here
token_name = your token name here

You can avoid providing password creating manually this file an putting your personal Github acces token (https://github.com/settings/tokens) on ~/.llumrc file.

Github

IMPORTANT: Requires previous execution of llum init command to work.

github:init

IMPORTANT: Requires previous execution of llum init command to work.

This commands initializes a Github repo, create a first commit, create a Github repo and syncs local content with Github repo. The commands executed are:

git init
git add .
git commit -a -m "Initial version"
llum github:repo
git pull origin master
git push origin master

Example:

$ cd myproject
$ llum github:init
Running command git init...
S'ha inicialitzat un buit dipòsit de Git a /home/sergi/myproject/.git/
Running command git add ....
Running command git commit -a -m "Initial version"...
[master (comissió d'arrel) 563473d] Initial version
 1 file changed, 0 insertions(+), 0 deletions(-)
 ...
Running command llum github:repo...
Repository myproject created
Running command git remote add origin [email protected]:acacha/myproject.git...
Running command git pull origin master...
fatal: Couldn't find remote ref master
Running command git push origin master...
Comptant els objectes: 3, fet.
Escrivint els objectes: 100% (3/3), 216 bytes | 0 bytes/s, fet.
Total 3 (delta 0), reused 0 (delta 0)
To [email protected]:acacha/myproject.git
 * [new branch]      master -> master

github:repo

IMPORTANT: Requires previous execution of llum init command to work.

Create a new Github repo:

mkdir && cd newrepo
llum github:repo

This create a new Github repo called {yourgithubusername}/newrepo (the current folder name is used) . You can provide a name for the repo with:

llum github:repo reponame

boot

Execute commands:

  • devtools
  • sqlite
  • migrate
  • serve

And your are ready to go!

devtools

Install and configure amazing debug tools Laravel Debugbar and Laravel-ide-helper

llum devtools

debugbar

You can install only Laravel Debugbar devtool with:

llum debugbar

idehelper

You can install only Laravel-ide-helper devtool with:

llum idehelper

sqlite

Once you've installed a new laravel project use sqlite command to active sqlite

laravel new larapp
cd larapp
llum sqlite
File database/database.sqlite created successfully
.env file updated successfully

And sqlite is ready to go:

php artisan migrate 
Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table

provider

Add a provider to config/app.php file:

llum provider Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class

alias

Add an alias/Facade to config/app.php file:

llum alias Socialite Laravel\Socialite\Facades\Socialite::class

serve

Similar to php artisan serve but some enhacements:

  • First tyry to use port 8000 but if is already in use (in mi case so many times this occurs because Laravel homestead is up) then tries with following port numbers (8001, 8002, 8003)
  • If sensible-browser command is available then starts browser
llum serve
Running php artisan serve --port=8002
Opening http://localhost:8002 with default browser

migrate

Runs php artisan migrate

llum migrate

Packagist

https://packagist.org/packages/acacha/admin

Troubleshooting

GNU sed on MAC OS

Acacha llum need GNU sed to work so replace BSD sed with GNU sed using:

brew install gnu-sed --with-default-names

Check you version of sed with:

man sed

sed GNU version path is:

$ which sed
/usr/local/bin/sed

Instead of default path of BSD sed (installed by default on MAC OS):

/usr/bin/sed

More info at mdbootstrap/adminlte-laravel#58

Working notes

Update value in .env file with sed:

sed -i '/^MAIL_DRIVER=/s/=.*/=log/' .env

Comment database entries:

sed -i 's/^DB_/#DB_/g' .env

Add sqlite before database entries:

sed 's/.*DB_HOST.*/DB_CONNECTION=sqlite\n&/' .env

Artisan serve always working:

$continue = true;
$port = 8000;
do {
    echo "Testing with port: ". $port;
    if (check_port($port)) {
        passthru('php artisan serve --port=' . $port);
        $continue=false;
    }
    $port++;
} while ($continue);

echo "END";
function check_port($port,$host = '127.0.0.1') {
    $fp = @fsockopen($host, $port,$errno, $errstr, 5);
    if (!$fp) {
        return true;
    } else {
        // port is open and available
        return false;
        fclose($fp);
    }
}

Solution with php preg_replace function:

file_put_contents(base_path('.env'), preg_replace("/(MAIL_DRIVER)=(.*)/", "$1=log", file_get_contents(base_path('.env'))));

Insert provider in config/app.php file:

sed '/.*#llum_providers.*/a \\tBarryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class,\n' config/app.php

More Repositories

1

vue-laravel-authorization

vue-laravel-authorization
39
star
2

user

Boosted User class for Laravel
PHP
26
star
3

filesystem

Filesystem for PHP with stub compiler support
PHP
24
star
4

helpers

Acacha Laravel extra helpers
PHP
24
star
5

vuetify2

PHP
18
star
6

adminlte-laravel-installer

adminlte-laravel-installer . Installer for project acacha/adminlte-laravel
PHP
16
star
7

casteaching

Codi font dels screencasts: https://tubeme.acacha.org/tdd | Producció: http://casteaching.alumnedam.me
PHP
10
star
8

spark

Laravel Spark Fork
PHP
8
star
9

adminlte-vue

Adminlte bootstrap template vue components
Vue
6
star
10

forms

Form objects pattern implementation for Javascript.
JavaScript
6
star
11

wiki

Més info al canal de youtube Acacha_dev
6
star
12

HelloCordovaVueMdl

HelloCordovaVueMdl
Vue
5
star
13

lanparty

Source code of Lanparty Institut de l'Ebre
PHP
4
star
14

solid_laravel

solid_laravel example. Convert a basic STUPID laravel app to SOLID rocks!
PHP
4
star
15

forge-publish

Acacha Forge publish commands. Helps to publish projects on Laravel Forge. Test app: https://github.com/acacha/forge-publish-test
PHP
4
star
16

AccountAuthenticator

Android Studio version based on https://github.com/Udinic/AccountAuthenticator
Java
4
star
17

laravel-bootstrap

A Laravel Bootstrap Service Provider
PHP
3
star
18

casteaching_package

JavaScript
3
star
19

casteachingIonic

Ionic/Mobile app for casteaching. Laravel REST API server side at https://github.com/acacha/casteaching
Vue
3
star
20

Ebre_escool_app

Android app for ebre_escool
Java
3
star
21

androidskeleton

Android skeleton app example with login support for Facebook, Google Plus and Twitter.
Java
3
star
22

worlds

Acacha Worlds
3
star
23

adminlte-cordova-vue-laravel

Adminlte template for pure Javascript apps using Apache Cordova and Vue.js using Laravel Passport as backend
JavaScript
3
star
24

json-server-todos

json-server-todos
2
star
25

adminlte-vue-test

HTML
2
star
26

laravel-with-admin-lte

laravel-with-admin-lte
JavaScript
2
star
27

prova2

2
star
28

ComptadorIonic

Codi font dels screencasts https://tubeme.acacha.org/ionic
Vue
2
star
29

timetablevuetify

Demo:
JavaScript
2
star
30

users

User managment with Laravel and adminlte-laravel
PHP
2
star
31

skeleton_old

skeleton
PHP
2
star
32

forge-test

Source code for website https://forge.acacha.org/ . Package at https://github.com/acacha/forge
HTML
1
star
33

cordova-elixir

Apache Cordova template with Laravel Elixir
CSS
1
star
34

profile

Laravel 5 package for basic user profile support
HTML
1
star
35

php-learning

PHP
1
star
36

nuxt-vuetify

nuxt-vuetify
Vue
1
star
37

Google-Plus-Login-Android

Java
1
star
38

laravelManualAuth

PHP
1
star
39

MP13_202122

1
star
40

plantillaLaravelMysql

PHP
1
star
41

CodeIgniter-catalan

CodeIgniter catalan language pack
PHP
1
star
42

ebre-inventory

ebre-inventory
PHP
1
star
43

periods

periods
PHP
1
star
44

todosVue

todosVue
CSS
1
star
45

php_for_laravel_developers_def

PHP
1
star
46

codeigniter_hmvc

codeigniter_hmvc
PHP
1
star
47

forms_old

Form objects pattern implementation for Javascript
JavaScript
1
star
48

full_stack_development

https://acacha.github.io/full_stack_development
JavaScript
1
star
49

pushwoosh_demo

pushwoosh_demo
JavaScript
1
star
50

acacha-socialite

This package is abandoned in favour of https://github.com/acacha/laravel-social
PHP
1
star
51

forge

Acacha Forge Package. Used in https://forge.acacha.org/ . Laravel web site: https://github.com/acacha/forge
PHP
1
star
52

demo.adminlte.acacha.org

Demo site for acacha/adminlte-laravel package
PHP
1
star
53

testing_vuetify_selects

testing_vuetify_selects
JavaScript
1
star
54

personal_blog

Dist folder: https://github.com/acacha/acacha.github.io
HTML
1
star
55

demo.adminlte.acacha.org.obsolete

Demo page for acacha-adminlte package
JavaScript
1
star
56

todosBackend

todosBackend
JavaScript
1
star
57

jigsaw_wiki

jigsaw_wiki
CSS
1
star
58

Tasks_2017

Tasks (Todos) project for 2DAM 2017-18
HTML
1
star
59

php_for_laravel_developers

Blade
1
star
60

acacha-socialite-test

Test Laravel project for acacha-socialite package
JavaScript
1
star