PHPackages                             cbartolo/trip-calculator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cbartolo/trip-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cbartolo/trip-calculator
========================

Library to calculate vehicle trip costs

00PHP

Since Apr 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chrisbartolo/trip-cost-calculator-lib)[ Packagist](https://packagist.org/packages/cbartolo/trip-calculator)[ RSS](/packages/cbartolo-trip-calculator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Trip Cost Calculator - Library
==============================

[](#trip-cost-calculator---library)

[![codecov](https://camo.githubusercontent.com/8386ae54663903897904fcfc8772488734f9a114dff17df17588f91295692d4a/68747470733a2f2f636f6465636f762e696f2f67682f6368726973626172746f6c6f2f747269702d636f73742d63616c63756c61746f722d6c69622f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d36554f574e42535343)](https://codecov.io/gh/chrisbartolo/trip-cost-calculator-lib)[![Build Status](https://camo.githubusercontent.com/47c7bff3b69e9149b9e69e398e733ae6561a9c9d4c770031adda9ae2bec8d579/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6368726973626172746f6c6f2f747269702d636f73742d63616c63756c61746f722d6c69622e7376673f6272616e63683d6d61696e)](https://www.travis-ci.com/chrisbartolo/trip-cost-calculator-lib)

The Trip Cost Calculator provides easy functionality for evaluating the total cost for a pre-defined route that your vehicle will travel. The parameters supported and considered in cost calculation are:

- route distance in km
- route travelling time
- driver salary hourly rate
- vehicle wear and tear costs

The library is using PHP-DI

Basic Usage
-----------

[](#basic-usage)

```
