Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

ETL pipeline: export company data from Openapi to PostgreSQL

Offen
#25 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
php, postgresql

Rechercherichtung

Start by reading the SDK's API client and OAuth usage shown in the issue, then inspect the examples/ directory to see how examples are organized. The proposed workflow uses Openapi's company API and PostgreSQL, but pagination and partial failure behavior are still open questions. Done would mean those choices are settled and the intended example or SDK support is clearly specified.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement help wanted

Use case

A common ETL scenario: pull company data from the Openapi IT company API and load it into a local PostgreSQL database for reporting or enrichment pipelines.

Example flow

use Openapi\Client;
use Openapi\OauthClient;

$oauth = new OauthClient();
$token = json_decode($oauth->createToken(['GET:company.openapi.com/IT-advanced']), true)['token'];

$client = new Client($token);
$companies = json_decode($client->get('https://company.openapi.com/IT-search', [
    'provincia' => 'MI',
    'codice_ateco' => '6201',
]), true);

foreach ($companies['items'] as $company) {
    $pdo->execute(
        'INSERT INTO companies (cf, name, address) VALUES (?, ?, ?) ON CONFLICT DO NOTHING',
        [$company['cf'], $company['name'], $company['address']]
    );
}

Open questions

  • Should the SDK expose a pagination helper or leave that to the consumer?
  • How do we handle partial failures mid-batch — retry, skip, or fail fast?
  • Is there interest in an official example script for this use case in examples/?
Vorherrschende Sprache
PHP
Sterne
20
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus openapi/openapi-php-sdk

Alle Issues in openapi/openapi-php-sdk

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.