GithubHelp home page GithubHelp logo

arthurguy / markdown-invoice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gnikyt/markdown-invoice

0.0 2.0 0.0 141 KB

Personal tool I use to generate my Markdown invoices into HTML/PDF.

License: MIT License

PHP 57.38% HTML 42.62%

markdown-invoice's Introduction

Markdown Invoice

This is a simple Symfony console application that I use to turn Markdown invoices into HTML or PDF.

Setup

Simply create your invoice folders under invoices/ directory. Example: paid, unpaid, estimates. A recommended file naming format is [YYYY]-[MM]-[DD]-[project].md (2013-01-15-github.md).

See invoices/2013-01-15-sample.md for an example Markdown invoice. The script uses a template invoices/layout.html to give the invoice its layout and styling which you can modify to your needs.

Useage

bin/markdown-invoice generate --help
Usage:
 generate [--output[="..."]] src [invoice]

Arguments:
 src                   Location of invoice; ex: "paid", "unpaid"
 invoice               What invoice to generate for?

Options:
 --output              Output to format; html or pdf (default: "html")
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v)        Increase verbosity of messages.
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

Example run:

bin/markdown-invoice generate unpaid --output=pdf
Please choose an invoice in "unpaid"...

1. 2012-01-15-xxxx.md
2. 2012-01-14-xxx.md
Which invoice? 2

Generating for invoice "2012-01-14-xxx"...

Invoice generated.
PDF saved to: output/2012-01-14-xxx.pdf

Requirements

markdown-invoice's People

Contributors

gnikyt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.