Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationsBD_CHEVALIER_TONDON_KELBERT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KELBERT Paul
ApplicationsBD_CHEVALIER_TONDON_KELBERT
Commits
79618d62
Commit
79618d62
authored
5 years ago
by
Tondon César
Browse files
Options
Downloads
Patches
Plain Diff
master
parent
b6927824
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Seance4/README.md
+4
-0
4 additions, 0 deletions
Seance4/README.md
Seance4/preparation seance 4.txt
+17
-0
17 additions, 0 deletions
Seance4/preparation seance 4.txt
with
21 additions
and
0 deletions
Seance4/README.md
0 → 100644
+
4
−
0
View file @
79618d62
# Seance 4
**Branch**
**4**
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Seance4/preparation seance 4.txt
0 → 100644
+
17
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment