jacobtilly / larafort
A package to provide a simple way to connect Laravel to Fortnox.
Requires
- guzzlehttp/guzzle: ^7.8
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- orchestra/testbench-core: ^7.0
- phpunit/phpunit: ^11.5
README
This package provides a simple way to connect Laravel applications to Fortnox accounting software. It handles OAuth authentication, API requests, and environment management. Please refer to contributing.md for a detailed to-do list.
Buy me a coffee?
If you use this package, please consider buying me a coffee :)
Installation
Via Composer
composer require jacobtilly/larafort
Then, run the install command to configure the connection to Fortnox. Please note that you need to create and set up a Fortnox integration in developer portal beforehand.
php artisan larafort:install
Usage
After installation, use the following artisan commands to manage your Fortnox connection:
php artisan larafort:install
php artisan larafort:migrate
php artisan larafort:refresh-tokens
php artisan larafort:testconnection
php artisan larafort:env
php artisan larafort:stoptunnel
php artisan larafort:uninstall
For API interactions, use the LaraFort facade:
use JacobTilly\LaraFort\Facades\LaraFort; LaraFort::get('endpoint'); LaraFort::post('endpoint', $data); LaraFort::put('endpoint', $data); LaraFort::delete('endpoint');
Testing
composer test
Contributing
Contributions are welcome! Submit an issue or a pull request.
Responsibility note
I am not in any way affiliated with Fortnox, just a happy customer and Laravel programmer :) This project was originally only intended for me to use in my projects, but I decided to publish it if it would be of good use for someone else. Please note, however, that I take no responsibility for basically anything related to the use of this package. Always look through the code of packages you decide to install and use.
Security
If you discover any security related issues, please email dev@jacobtilly.com instead of using the issue tracker.
License
MIT. Please see the license file for more information.