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. [API Development](/categories/api)
4. /
5. grafstorm/hittase-php-api-for-laravel

ActiveLibrary[API Development](/categories/api)

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

This is my package Hitta

0.1.0(5y ago)027MITPHPPHP ^8.0

Since May 26Pushed 5y 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 3w ago

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 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1866d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76749554?v=4)[grafstorm](/maintainers/grafstorm)[@grafstorm](https://github.com/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

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M102](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

811334.1k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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