invoiceninja/invoiceninja

▲ 34 stars today★ 10,388⑂ 2,781

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

About invoiceninja/invoiceninja

invoiceninja/invoiceninja is an open-source project on GitHub, mainly written in PHP. A source-available invoice, quote, project and time-tracking app built with Laravel It currently holds 10,388 stars and 2,781 forks with 234 open issues, and was last pushed on 2026-10-30 (repository created 2013-11-26).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #96 with 34 new stars today.

GitHub Repository Details

Repository invoiceninja/invoiceninja · default branch v5-stable · size 4250705 KB · watchers 207 · source: GitHub REST API and repository README

README

https://github.com/invoiceninja/invoiceninja/blob/HEAD/Sublime's custom image

v5-develop phpunit Codacy Badge https://github.com/invoiceninja/invoiceninja/blob/HEAD/CLA assistant

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

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

Documentation

Installation Options and Clients

Mobile Apps

Desktop Apps

Self-Hosted Server Installation

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

Recommended Providers

SDKs available for easier API consumption

[Advanced] Quick Hosting Setup

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

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

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

To run the web server

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.

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

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.

GitHub Stars & Activity

10,388Stars
2,781Forks
234Open issues
PHPLanguage

GitHub Popularity

GitHub stars10,388
Forks2,781
Open issues234
Primary languagePHP
LicenseNOASSERTION
Stars gained today34
Created2013-11-26
Last pushed2026-10-30

Trending History

Daily boardrank #96 · ▲ 34 stars

Related GitHub Projects

1

openclaw / openclaw

TypeScript★ 393,424⑂ 82,694▲ 149 stars
→
2

obra / superpowers

Shell★ 309,055⑂ 27,483▲ 1,034 stars
→
3

mattpocock / skills

Shell★ 306,969⑂ 25,824▲ 882 stars
→
4

affaan-m / ECC

JavaScript★ 293,006⑂ 43,351▲ 987 stars
→
5

n8n-io / n8n

TypeScript★ 209,100⑂ 61,315▲ 154 stars
→
6

anthropics / skills

Python★ 184,916⑂ 21,866▲ 287 stars
→
7

flutter / flutter

Dart★ 180,669⑂ 33,377▲ 72 stars
→
8

msitarzewski / agency-agents

Shell★ 165,302⑂ 26,717▲ 312 stars
→

More Trending Repositories