Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KELBERT Paul
ApplicationsBD_CHEVALIER_TONDON_KELBERT
Commits
79618d62
Commit
79618d62
authored
Mar 11, 2020
by
Tondon César
Browse files
master
parent
b6927824
Changes
2
Hide whitespace changes
Inline
Side-by-side
Seance4/README.md
0 → 100644
View file @
79618d62
# Seance 4
**Branch**
**4**
.
\ No newline at end of file
Seance4/preparation seance 4.txt
0 → 100644
View file @
79618d62
Preparation séance 4 :
Comment s'installe Faker ?
Il faut avoir une version de PHP supérieur à 5.3.3.
Enfin pour l'installer, il suffit d'ajouter Faker au composer :
composer require fzaninotto/faker
Donnez un exemple de code pour générer une adresse américaine en utilisant faker ?
Modèle utilisé : Faker\Provider\en_US\Address
echo $faker->address;
Résultat --> "426 Jordy Lodge Cartwrightshire, SC 88120-6700"
Formattez une date en type DateTime : "2017/02/16 (16:15)" ?
$faker->dateTime()->format('Y-m-d')->format('H:i');
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment