Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ETL pipeline: export company data from Openapi to PostgreSQL

Aperta
#25 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php, postgresql

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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/?
Lingua principale
PHP
Stelle
20
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openapi/openapi-php-sdk

Tutte le issue di openapi/openapi-php-sdk

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.