This is a framework-agnostic package to be used as a n invoicing system consisting of the main components:
- Invoice
- Recipient
- Item
- and some other ones, can be found in
Invoicing\Domainnamespace
Built using Domain-Driven Design principles
This package is still under development, but can be used in any framework using composer
- Add github repository source
"repositories": [
{
"type": "vcs",
"url": "[email protected]:HazemNoor/invoicing.git",
"no-api": true
}
]- Add using composer require
composer require hazemnoor/invoicing dev-main- Fetch project
git clone [email protected]:HazemNoor/invoicing.git
cd invoicing- Copy file
.env.exampleinto.env
cp .env.example .env-
Edit file
.envif needed -
Make sure to have
docker-composeinstalled on your machine, then execute this command to build docker images
make build- Run these commands to execute
composer install
make up
make install- If you need to log in to docker container, use these commands
make up
make login- Stop docker containers
make downYou can run unit tests using these commands
make up
make testThe coding style used is PSR-12 and is included with the testing command make test using PHP_CodeSniffer
Run code coverage, an html report will be generated in .code-coverage directory
make up
make coverageCurrent code coverage is 100%
- Implement more repositories to store in different medium, like
MySQL