Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

invoiceninja

> 后端框架
Open source

A source-available invoice, quote, project and time-tracking app built with Laravel

9.9K stars0 likes4 views
WebsiteGitHub

About

A source-available invoice, quote, project and time-tracking app built with Laravel

Invoice Ninja 5

Invoice Ninja Version 5 is here! We've taken the best parts of version 4 and added the most requested features to create an invoicing application like no other. Check the Invoice Ninja YouTube Channel to get up to speed, or try the Demo now.

Choose your setup

  • Hosted: Our hosted version is a Software as a Service (SaaS) solution. You're up and running in under 5 minutes, with no need to worry about hosting or server infrastructure.
  • Self-Hosted: For those who prefer to manage their own hosting and server infrastructure. This version gives you full control and flexibility.

All Pro and Enterprise features from the hosted app are included in the source-available code. We offer a $40 per year white-label license to remove the Invoice Ninja branding from client-facing parts of the app.

Get social with us

  • Support Forum
  • Slack
  • Discord
  • Instagram

Documentation

  • Invoice Ninja - API
  • Invoice Ninja - Developer Guide
  • Invoice Ninja - User Guide
  • Invoice Ninja - Self-Hosted Installation Guide

Installation Options and Clients

Mobile Apps

  • iPhone
  • Android
  • F-Droid

Desktop Apps

  • macOS
  • Windows
  • Linux - Snap
  • Linux - Flatpak

Self-Hosted Server Installation

Note: The self-hosted options do support the desktop and mobile apps.

  • Server or VM
  • Docker File
  • Cloudron
  • Softaculous
  • Elestio
  • YunoHost

Recommended Providers

  • Stripe
  • Postmark

SDKs available for easier API consumption

  • Go SDK

[Advanced] Quick Hosting Setup

In addition to the official Invoice Ninja - Self-Hosted Installation Guide we have a few commands for you.

bash
git clone --depth 1 -b v5.11.53 https://github.com/invoiceninja/invoiceninja.git
cp .env.example .env
composer i -o --no-dev

Note replace v5.11.53 with the latest tag version, you will also want to ensure that when performing updates, you use the latest tag version rather than a particular branch, ie v5-develop. This will ensure that you are not pulling in work in progress code.

Please Note: Your APP_KEY in the .env file is used to encrypt data, if you lose this you will not be able to run the application.

Run if you want to load sample data, remember to configure .env

bash
php artisan migrate:fresh --seed && php artisan db:seed && php artisan ninja:create-test-data

To run the web server

bash
php artisan serve 

Navigate to (replace localhost with the appropriate domain)

http://localhost:8000/setup - To setup your configuration if you did not load sample data.
http://localhost:8000/ - For Administrator Logon

user: [email protected]
pass: password

http://localhost:8000/client/login - For Client Portal

user: [email protected]
pass: password

Developers Guide

In addition to the official Invoice Ninja - Developer Guide we've got your back with some insights.

App Design

The API and client portal have been developed using Laravel if you wish to contribute to this project familiarity with Laravel is essential.

When inspecting functionality of the API, the best place to start would be in the routes/api.php file which describes all of the availabe API endpoints. The controller methods then describe all the entry points into each domain of the application, ie InvoiceController / QuoteController

The average API request follows this path into the application.

  • Middleware processes the request initially inspecting the domain being requested + provides the authentication layer.
  • The request then passes into a Form Request (Type hinted in the controller methods) which is used to provide authorization and also validation of the request. If successful, the request is then passed into the controller method where it is digested, here is an example:
php
public function store(StoreInvoiceRequest $request)
{

    $invoice = $this->invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->id));

    $invoice = $invoice->service()
                        ->fillDefaults()
                        ->triggeredActions($request)
                        ->adjustInventory()
                        ->save();

    event(new InvoiceWasCreated($invoice, $invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));

    return $this->itemResponse($invoice);

}

Here for example we are storing a new invoice, we pass the validated request along with a factory into the invoice repository where it is processed and saved.

The returned invoice then passes through its service class (app/Services/Invoice) where various actions are performed.

A event is then fired which notifies listeners in the application (app/Providers/EventServiceProvider) which perform non blocking sub tasks

Finally the invoice is transformed (app/Transformers/) and returned as a response via Fractal.

Developer environment

Using the Quick Hosting Setup describe above you can quickly get started building out your development environment. Instead of using

composer i -o --no-dev

use

composer i -o

This provides the developer tools including phpunit which allows the test suite to be run.

If you are considering contributing back to the main repository, please add in any tests for new functionality / modifications. This will greatly increase the chances of your PR being accepted

Also, if you plan any additions for the main repository, you may want to discuss this with us first on Slack where we can assist with any technical information and provide advice.

Credits

  • Hillel Coren
  • David Bomba
  • Benjamin Beganović
  • All Contributors

Want More?

Checkout our other projects here!

Event Schedule

Security

If you find a security issue with this application, please send an email to [email protected]. Please follow responsible disclosure procedures if you detect an issue. For further information on responsible disclosure please read here.

License

Invoice Ninja is released under the Elastic License.
See LICENSE for details.

Issues· 208 open

View all issuesOpen on GitHub
  • #13288

    Quote number is not generated with "When Sent" when Valid Until is the current date

    triageUpdated Sep 20, 2026
  • #12285

    Font rendering (webfonts)

    more info requestedUpdated Sep 19, 2026
  • #12276

    "You are not authorized to perform this action" after login

    more info requestedUpdated Sep 17, 2026
  • #12240

    Payment driver for Payzum (non-custodial crypto/stablecoin gateway) — PR welcome?

    Updated Sep 2, 2026
  • #1502

    [Feature Request]Automatically add expense for gateway fee

    feature requestUpdated Aug 12, 2026
  • #2490

    UK: Making Tax Digital for VAT

    feature requestUpdated Aug 7, 2026
  • #12027

    Feature Request: Native Cash Discount (Skonto / Early Payment Discount) Support

    more info requestedUpdated Aug 3, 2026
  • #1487

    [Feature-Request] Compliance with German law for invoicing systems

    feature requestquestionUpdated Jul 29, 2026
  • #8888

    Registration Required option for Payment link does nothing

    bugUpdated Jun 10, 2026
  • #11938

    Nordigen total Balance stays 0.00

    more info requestedUpdated May 6, 2026

> Tags

PHPeinvoicingexpensesflutterhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架