PHPackages                             grafstorm/hittase-php-api-for-laravel - 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. grafstorm/hittase-php-api-for-laravel

ActiveLibrary

grafstorm/hittase-php-api-for-laravel
=====================================

This is my package Hitta

0.1.0(4y ago)027MITPHPPHP ^8.0

Since May 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/argia-andreas/hittase-php-api-for-laravel)[ Packagist](https://packagist.org/packages/grafstorm/hittase-php-api-for-laravel)[ Docs](https://github.com/grafstorm/hittase-php-api-for-laravel)[ GitHub Sponsors](https://github.com/grafstorm)[ RSS](/packages/grafstorm-hittase-php-api-for-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Hitta.se API wrapper for Laravel
================================

[](#hittase-api-wrapper-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/359b54f51ff246e5386274b540ab99c30df6b032d55c1b6131dd225740ce360f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772616673746f726d2f686974746173652d7068702d6170692d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grafstorm/hittase-php-api-for-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/eb170f481c4d287083774fbc271d8b2cc118d23e9775995b8151ec54c7e5a1fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616673746f726d2f686974746173652d7068702d6170692d666f722d6c61726176656c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/grafstorm/hittase-php-api-for-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e846028cbbcac0cce483a37e5f512c5328bb189c80496c64bb3094490d452c4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616673746f726d2f686974746173652d7068702d6170692d666f722d6c61726176656c2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/grafstorm/hittase-php-api-for-laravel/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b089b119244334dcb9b1e6acffd7b96f89c791313eaf25a7c67554f0d4824e48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772616673746f726d2f686974746173652d7068702d6170692d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grafstorm/hittase-php-api-for-laravel)

This package uses the Hitta.se API PHP package `grafstorm/hitta_php_package` and packages it for Laravel. All you need to get going is setting the correct callerId and apiKey in you .env file.``

See  for more detailed info on what fields are available.

This package is an unofficial package and is still in beta.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require grafstorm/hittase-php-api-for-laravel
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --provider="Grafstorm\Hitta\HittaServiceProvider" --tag="hittase-php-api-for-laravel-config"
```

Be sure to add callerId and apiKey in your .env file:

```
HITTA_CALLER_ID=## your caller id ##
HITTA_API_KEY=## your api key ##

```

This is the contents of the published config file:

```
return [
    'callerId' => env('HITTA_CALLER_ID'),
    'apiKey' => env('HITTA_API_KEY'),
];
```

Usage
-----

[](#usage)

```
// Hitta.se API Wrapper as a Laravel Package
// Search for Swedish companies and people

// Combined search. You can also explicitly call Hitta::combined()
Hitta::what('Luke Skywalker')
  ->where('Kiruna')
  ->find();

$result = Hitta::combined()
  ->what('Empire')
  ->where('Deathstar')
  ->find();

foreach($result->companies as $company) {
  echo $company->displayName . "\n";
}

foreach($result->people as $person) {
  echo $person->displayName . "\n";
}

// Only Search for people
Hitta::people()
  ->what('Luke Skywalker')
  ->find();

// Only Search for companies
Hitta::companies()
  ->what('Empire')
  ->find();

// Optional search parameters
Hitta::companies()
  ->what('Luke Skywalker')
  ->where('Kiruna')
  ->pageNumber(1)
  ->pageSize(10)
  ->rangeFrom(100)
  ->rangeTo(150)
  ->find();

// Fetching details of a company or person with findPerson and findCompany.
$result = Hitta::people()
  ->what('Luke Skywalker')
  ->find();

$personId = collect($result->people)->first()->id;
$companyId = collect($result->companies)->first()->id;

Hitta::findPerson($personId);
Hitta::findCompany($companyId);
```

Testing
-------

[](#testing)

See grafstorm/hitta\_php\_package for tests.

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [grafi](https://github.com/argia-andreas)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55699875c0413ce112742e2c2969ebf20dad20d14578d31bed06316be5a8beec?d=identicon)[grafstorm](/maintainers/grafstorm)

---

Top Contributors

[![argia-andreas](https://avatars.githubusercontent.com/u/9297340?v=4)](https://github.com/argia-andreas "argia-andreas (3 commits)")

---

Tags

laravelgrafstormhittase-php-api-for-laravel

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/grafstorm-hittase-php-api-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/grafstorm-hittase-php-api-for-laravel/health.svg)](https://phpackages.com/packages/grafstorm-hittase-php-api-for-laravel)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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