diff --git a/README.md b/README.md index 7807a79..9622c3d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Written in PHP. May be adapted in the futur to allow for more use cases. +Currently support only the french language but you can write your own template that support your language. + Long term goal is to include this code into a bigger project that manage all the life of a freelancer ## Requirements diff --git a/bill.example.html b/bill.example.html new file mode 100644 index 0000000..c26c4f3 --- /dev/null +++ b/bill.example.html @@ -0,0 +1,218 @@ + + + + + Facture + + + +
+

Facture n°2022-02-1

+
+ + +
+

+ Le mardi 1 mars 2022,
+

+

+ Objet : Web development of a super cool app +

+
+
+
+
+ Tâche +
+
+ Durée (en jours) +
+
+
+ The magnificient blog of your super website +
+
+
Manage articles
+
1,5
+
+
+
RSS feed
+
0,5
+
+
+
Beautiful reader
+
0,5
+
+
+
External connexion
+
0,9
+
+
+
+
Sous-total
+
3,4
+
+
+
+
+
+
+ Tâche +
+
+ Durée (en jours) +
+
+
+ Deployment to production +
+
+
Install a web server
+
0,3
+
+
+
Deployment of the app
+
0,5
+
+
+
+
Sous-total
+
0,8
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Total en jours4,2 j
Taux journalier en euros300 €
TVA (0 %)0 €
Total TTC1 260 €
Solde1 260 €
+
+ +
+ + diff --git a/bill.example.pdf b/bill.example.pdf new file mode 100644 index 0000000..b2321b3 Binary files /dev/null and b/bill.example.pdf differ diff --git a/generate_html.php b/generate_html.php index 6e100c8..87df4ec 100644 --- a/generate_html.php +++ b/generate_html.php @@ -7,7 +7,7 @@ use Twig\Extra\Intl\IntlExtension; require 'vendor/autoload.php'; -$data = Yaml::parseFile('./bill.yaml'); +$data = Yaml::parseFile('./bill.example.yaml'); $totalDays = 0; foreach ($data['categories'] as $i => $category) { diff --git a/templates/bill.html.twig b/templates/bill.html.twig index 1f02741..9def1fb 100644 --- a/templates/bill.html.twig +++ b/templates/bill.html.twig @@ -4,7 +4,7 @@ Facture diff --git a/styles/main.css b/templates/styles/main.css similarity index 100% rename from styles/main.css rename to templates/styles/main.css