PHPackages                             grafstorm/hitta\_php\_package - 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. grafstorm/hitta\_php\_package

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

grafstorm/hitta\_php\_package
=============================

Hitta.se PHP package

0.1.0(5y ago)01.2k↓60.4%1MITPHPPHP ^8.0

Since May 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/argia-andreas/hitta.se-php-api)[ Packagist](https://packagist.org/packages/grafstorm/hitta_php_package)[ Docs](https://github.com/grafstorm/hitta_php_package)[ GitHub Sponsors](https://github.com/grafstorm)[ RSS](/packages/grafstorm-hitta-php-package/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (1)

Hitta.se PHP package
====================

[](#hittase-php-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/73e3b1f66804aefa533768edde5820ccf4e81aa872f917e5765591c2d4db6800/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772616673746f726d2f68697474615f7068705f7061636b6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grafstorm/hitta_php_package)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5f13375d189438ce1b16146880e186b57a01be1e9bf3d6b5cb210cb407684d91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616673746f726d2f68697474615f7068705f7061636b6167652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/grafstorm/hitta_php_package/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b1c4f4a63bb7e39de7064c02be6ae380f28c205031445e9c0851048f3e7bdee9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6772616673746f726d2f68697474615f7068705f7061636b6167652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/grafstorm/hitta_php_package/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/1d356caf4b9dfe53c237e479da5e642bd8801caef5aa3f60238394cbb9ea29b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772616673746f726d2f68697474615f7068705f7061636b6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grafstorm/hitta_php_package)

---

**Package under development**
Fluent Wrapper around the API Hitta.se provides. Example of usage:

```
$hitta = new Hitta('::api-user::', '::api-key::');
$result = $hitta->companies()
    ->what('Empire')
    ->where('Deathstar')
    ->find();

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

Requirements
------------

[](#requirements)

PHP 8 is required.

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

[](#installation)

You can install the package via composer:

```
composer require grafstorm/hitta_php_package
```

Usage
-----

[](#usage)

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

// Create a new instance of the API wrapper.
$hitta = new Hitta('::api-user::', '::api-key::');

// 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();

// Example of Fetching details of a company or person with findPerson and findCompany.
$result = $hitta->combined()
  ->what('Skywalker')
  ->find();

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

$hitta->findPerson($personId);
$hitta->findCompany($companyId);
```

Testing
-------

[](#testing)

Tests requiring proper API keys are skipped unless you provide them in your testing environment.

```
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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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

1864d 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 (10 commits)")

---

Tags

grafstormhitta\_php\_package

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/grafstorm-hitta-php-package/health.svg)

```
[![Health](https://phpackages.com/badges/grafstorm-hitta-php-package/health.svg)](https://phpackages.com/packages/grafstorm-hitta-php-package)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[firefly-iii/data-importer

Firefly III Data Import Tool.

8045.8k](/packages/firefly-iii-data-importer)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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