Skip to content

Commit f36a1b8

Browse files
committed
update documention and french doc
1 parent b4c0900 commit f36a1b8

File tree

8 files changed

+157
-117
lines changed

8 files changed

+157
-117
lines changed

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.sensiolabs.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.styleci.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
# Command
1+
# Laravel commands
22

3-
[![Build Status](https://travis-ci.org/guysolamour/command.svg?branch=master)](https://travis-ci.org/guysolamour/command)
4-
[![styleci](https://styleci.io/repos/CHANGEME/shield)](https://styleci.io/repos/CHANGEME)
5-
[![Coverage Status](https://coveralls.io/repos/github/guysolamour/command/badge.svg?branch=master)](https://coveralls.io/github/guysolamour/command?branch=master)
6-
7-
[![Packagist](https://img.shields.io/packagist/v/guysolamour/command.svg)](https://packagist.org/packages/guysolamour/command)
8-
[![Packagist](https://poser.pugx.org/guysolamour/command/d/total.svg)](https://packagist.org/packages/guysolamour/command)
9-
[![Packagist](https://img.shields.io/packagist/l/guysolamour/command.svg)](https://packagist.org/packages/guysolamour/command)
3+
[![Packagist](https://img.shields.io/packagist/v/guysolamour/laravel-commands.svg)](https://packagist.org/packages/guysolamour/command)
4+
[![Packagist](https://poser.pugx.org/guysolamour/laravel-commands/d/total.svg)](https://packagist.org/packages/guysolamour/command)
5+
[![Packagist](https://img.shields.io/packagist/l/guysolamour/laravel-commands.svg)](https://packagist.org/packages/guysolamour/command)
106

117
This package is a collection of artisan commands for speed up developpemt with laravel framework.
128

139
## Installation
1410

1511
Install via composer
12+
1613
```bash
1714
composer require guysolamour/laravel-commands
1815
```
@@ -25,26 +22,27 @@ php artisan vendor:publish --provider="Guysolamour\Command\ServiceProvider" --ta
2522

2623
## Usage
2724

28-
2925
### Create Database Command
26+
3027
```bash
3128
php artisan cmd:db:create
3229
```
30+
3331
By default, the package will look for information at the **.env** file in the database section
3432

3533
However, you can pass the name of the database
34+
3635
```bash
3736
php artisan cmd:db:create {name}
3837
```
3938

40-
4139
Supported drivers are (mysql & sqlite).
4240
The connection can be changed with 'connection' option which is mysql by default.
4341

44-
4542
```bash
4643
php artisan cmd:db:create {name} --connection={mysql|sqlite}
4744
```
45+
4846
For mysql driver, login credentials can be changed with the options below:
4947

5048
```bash
@@ -56,9 +54,11 @@ php artisan cmd:db:create {name}
5654
```
5755

5856
### Drop Database Command
57+
5958
```bash
6059
php artisan cmd:db:drop
6160
```
61+
6262
By default, the package will look for information at the **.env** file in the database section
6363

6464
However, you can pass the name of the database.
@@ -73,6 +73,7 @@ The connection can be changed with 'connection' option which is mysql by default
7373
```bash
7474
php artisan cmd:db:drop {name} --connection={mysql|sqlite}
7575
```
76+
7677
For mysql driver, login credentials can be changed with the options below:
7778

7879
```bash
@@ -84,38 +85,42 @@ php artisan cmd:db:drop {name}
8485
```
8586

8687
### Trait Command
88+
8789
```bash
8890
php artisan cmd:make:trait {name}
8991
```
92+
9093
Folder name can be changed with _'folder'_ option
9194

9295
```bash
9396
php artisan cmd:make:trait {name} --folder={folder}
9497
```
9598

9699
### Service Provider Command
100+
97101
```bash
98102
php artisan cmd:make:provider {name}
99103
```
104+
100105
Folder name can be changed with _'folder'_ option
101106

102107
```bash
103108
php artisan cmd:make:provider {name} --folder={folder}
104109
```
105110

106111
### Helper Command
112+
107113
```bash
108114
php artisan cmd:make:helper {name}
109115
```
116+
110117
Folder name can be changed with _'folder'_ option
111118

112119
```bash
113120
php artisan cmd:make:helper {name} --folder={folder}
114121
```
115122

116-
117-
## Security
123+
### Security
118124

119125
If you discover any security related issues, please email
120126
instead of using the issue tracker.
121-

docs/doc-fr.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Laravel commands
2+
3+
[![Packagist](https://img.shields.io/packagist/v/guysolamour/laravel-commands.svg)](https://packagist.org/packages/guysolamour/command)
4+
[![Packagist](https://poser.pugx.org/guysolamour/laravel-commands/d/total.svg)](https://packagist.org/packages/guysolamour/command)
5+
[![Packagist](https://img.shields.io/packagist/l/guysolamour/laravel-commands.svg)](https://packagist.org/packages/guysolamour/command)
6+
7+
## La documentation anglaise est disponible [ici](README.md)
8+
9+
## Préambule
10+
11+
Ce package est une collection de commandes artisan pour laravel
12+
13+
## Installation via composer
14+
15+
```bash
16+
composer require guysolamour/laravel-commands
17+
```
18+
19+
### Publication de la configuration
20+
21+
```bash
22+
php artisan vendor:publish --provider="Guysolamour\Command\ServiceProvider" --tag="config"
23+
```
24+
25+
## Un tour des commandes disponible
26+
27+
### Créer une base de donnée
28+
29+
```bash
30+
php artisan cmd:db:create
31+
```
32+
33+
Par défaut, les informations de connection a la base de donné seront récupérées dans le fichier **.env** .
34+
35+
Le nom de la base de donné peut être passé en argument.
36+
37+
```bash
38+
php artisan cmd:db:create blog
39+
```
40+
41+
**NB:**
42+
43+
- Les drivers supportés sont (mysql & sqlite)
44+
45+
Le driver peut être changé avec l'option --connection qui est mysql par défaut
46+
47+
```bash
48+
php artisan cmd:db:create blog --connection=sqlite
49+
```
50+
51+
Pour le driver mysql, on peut changer les informations de connexion avec ces options.
52+
53+
```bash
54+
php artisan cmd:db:create blog
55+
--connection=mysql
56+
--username=root
57+
--password=root
58+
--port=3306
59+
```
60+
61+
### Supprimer une base de donnée
62+
63+
```bash
64+
php artisan cmd:db:drop
65+
```
66+
67+
Par défaut, les informations de connection a la base de donné seront récupérées dans le fichier **.env** .
68+
69+
Le nom de la base de donné peut être passé en argument.
70+
71+
```bash
72+
php artisan cmd:db:drop blog
73+
```
74+
75+
**NB:**
76+
77+
- Les drivers supportés sont (mysql & sqlite)
78+
79+
Pour le driver mysql, on peut changer les informations de connexion avec ces options.
80+
81+
```bash
82+
php artisan cmd:db:drop blog --connection=sqlite
83+
```
84+
85+
Pour le driver mysql, on peut changer les informations de connexion avec ces options.
86+
87+
```bash
88+
php artisan cmd:db:drop blog
89+
--connection=mysql
90+
--username=root
91+
--password=root
92+
--port=3306
93+
```
94+
95+
### Créer un trait
96+
97+
```bash
98+
php artisan cmd:make:trait Sluggable
99+
```
100+
101+
Les traits sont stockés dans le ***App/Traits***.
102+
Ce dossier peut être changé avec l'option _'folder'_
103+
104+
```bash
105+
php artisan cmd:make:trait Sluggable --folder=Traits
106+
```
107+
108+
### Créer un service provider
109+
110+
```bash
111+
php artisan cmd:make:provider ViewServiceProvider
112+
```
113+
114+
Les providers sont stockés dans le ***App/Providers***.
115+
116+
Ce dossier peut être changé avec l'option _'folder'_
117+
118+
```bash
119+
php artisan cmd:make:provider ViewServiceProvider --folder=Providers
120+
```
121+
122+
### Créer un helper
123+
124+
```bash
125+
php artisan cmd:make:helper helpers
126+
```
127+
128+
Les helpers sont stockés dans le ***App/Helpers***.
129+
130+
Ce dossier peut être changé avec l'option _'folder'_
131+
132+
```bash
133+
php artisan cmd:make:helper helpers --folderHhelpers
134+
```
135+
136+
### Sécurité
137+
138+
Si vous découvrez des problèmes liés à la sécurité, veuillez envoyer un e-mail au lieu d'utiliser le système de issue. Le mail est disponible dans le fichier *composer.json*

tests/CommandTest.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

tests/LaravelUsefulCommandsTest.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)