PHPackages                             lasserafn/laravel-intempus - 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. [API Development](/categories/api)
4. /
5. lasserafn/laravel-intempus

ActiveLibrary[API Development](/categories/api)

lasserafn/laravel-intempus
==========================

A laravel API wrapper for Intempus

2.0.7(8y ago)137MITPHPPHP ~5.6|~7.0

Since Dec 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/LasseRafn/laravel-intempus)[ Packagist](https://packagist.org/packages/lasserafn/laravel-intempus)[ Docs](https://github.com/LasseRafn/laravel-intempus)[ RSS](/packages/lasserafn-laravel-intempus/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

laravel-intempus
================

[](#laravel-intempus)

[![Version](https://camo.githubusercontent.com/a7d335b79193eddf9d3c40beb3f23febf7f8c2b07cf429529714bbd4576da7cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617373657261666e2f6c61726176656c2d696e74656d7075732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lasserafn/laravel-intempus)[![Downloads](https://camo.githubusercontent.com/b2a6cb0dce4b2305453d4f79d6d03fc0c439d8fd1730f1e92a039748ce2eee7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c617373657261666e2f6c61726176656c2d696e74656d7075732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lasserafn/laravel-intempus)[![StyleCI Shield](https://camo.githubusercontent.com/c0fc193089072f0d4bcf8d0199be96212fb5317f0d7f5f34abb5f9e08d88a8c6/68747470733a2f2f7374796c6563692e696f2f7265706f732f37363835363336342f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/c0fc193089072f0d4bcf8d0199be96212fb5317f0d7f5f34abb5f9e08d88a8c6/68747470733a2f2f7374796c6563692e696f2f7265706f732f37363835363336342f736869656c643f6272616e63683d6d6173746572)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Install
-------

[](#install)

Via Composer

```
$ composer require lasserafn/laravel-intempus
```

### Laravel Service Provider

[](#laravel-service-provider)

Add the follwing to your `providers` array in `config/app.php`:

```
\LasseRafn\LaravelIntempus\LaravelIntempusServiceProvider::class,
```

### Publish configs

[](#publish-configs)

Run this in your terminal

```
php artisan vendor:publish --provider="LasseRafn\LaravelIntempus\LaravelIntempusServiceProvider" --tag="config"
```

### Route (for Auth)

[](#route-for-auth)

Add this to your web.php file (or where-ever you desire)

```
Route::get('intempus/connect', function(\Illuminate\Http\Request $request) {
	dd($request->all()); // Of cause, you can do whatever you need.
	// Returned attributes are:
	    // pk
	    // hash
	    // token
});
```

Usage
-----

[](#usage)

### Auth

[](#auth)

```
$intempus = new Intempus();

$auth = $intempus->getAuth(); // returns url, hash and nonce in an array

return Redirect::to($auth['url']);
```

Remember to store the nonce, as you'll need it do send future requests.

### Doing stuff

[](#doing-stuff)

In order to send a request, you'll need the nonce (returned from the getAuth() method) and the token that is returned from Intempus. Look at the "Route (for Auth)" section for help.

An example of this could be:

```
Route::get('intempus/start', function(\Illuminate\Http\Request $request) {
    $intempus = new Intempus();

    $auth = $intempus->getAuth(); // returns url, hash and nonce in an array

    $request->session()->set('intempus_nonce', $auth['nonce']);

    return Redirect::to($auth['url']);
});
```

```
Route::get('intempus/connect', function(\Illuminate\Http\Request $request) {
    $nonce = $request->session()->get('intempus_nonce');
    $token = $request->get('token');
    $pk = $request->get('pk');

   	$intempus = new Intempus($nonce, $token, $pk);

   	dd( $intempus->products()->find(1) );
});
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lasse Rafn](https://github.com/lasserafn)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

todo
====

[](#todo)

- Allow deleting models/entities through the API
- Allow creating models/entities through the API
- Allow updating models/entities through the API
- Limit -&gt;get() method to X results and include an -&gt;all() method that uses pagination
- Add missing models
- Add relationship-ish behaviour

Reason for doing this
---------------------

[](#reason-for-doing-this)

As of creating this package, I'm employeed at [Bizz Zolutions](https://bizzz.dk) - and one of my tasks was integrating [Intempus timeregistrering](https://bizzz.dk/partnere/intempus-timeregistrering) with [e-conomic regnskabsprogram](https://bizzz.dk/partnere/e-conomic-regnskabsprogram). I believe in open sourcing as much as possible so this felt very natural. Had a talk with the boss and we're equally minded :-)

Use as you please. Oh, and sorry for the shameless backlinks.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Recently: every ~30 days

Total

19

Last Release

3219d ago

Major Versions

0.4.9 → 2.0.22017-03-13

0.4.9.5 → v2.0.12017-05-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd953630eb9784e977637a0fe53be91b9dd4b0262a5b5b1fa9277e0c2806b65c?d=identicon)[lasserafn](/maintainers/lasserafn)

---

Top Contributors

[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (42 commits)")

---

Tags

apiapi-wrapperintempuslaravellaravel-intempusLasseRafnlaravel-intempus

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lasserafn-laravel-intempus/health.svg)

```
[![Health](https://phpackages.com/badges/lasserafn-laravel-intempus/health.svg)](https://phpackages.com/packages/lasserafn-laravel-intempus)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
