PHPackages                             datomatic/laravel-carta-del-docente - 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. datomatic/laravel-carta-del-docente

ActiveLibrary[API Development](/categories/api)

datomatic/laravel-carta-del-docente
===================================

Laravel PHP Soap wrapper of Carta del Docente

v1.3.1(2mo ago)62.5k↓50%[1 PRs](https://github.com/datomatic/laravel-carta-del-docente/pulls)MITPHPPHP ^8.0CI passing

Since Oct 21Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/datomatic/laravel-carta-del-docente)[ Packagist](https://packagist.org/packages/datomatic/laravel-carta-del-docente)[ Docs](https://github.com/datomatic/laravel-carta-del-docente)[ RSS](/packages/datomatic-laravel-carta-del-docente/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (26)Versions (11)Used By (0)

[![Laravel-Carta-del-Docente-Dark](branding/dark.png#gh-dark-mode-only)](branding/dark.png#gh-dark-mode-only)[![Laravel-Carta-del-Docente-Light](branding/light.png#gh-light-mode-only)](branding/light.png#gh-light-mode-only)

Laravel Carta del Docente
=========================

[](#laravel-carta-del-docente)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ebabab990bfd89418c3a78a2da96dfad885f976d06daf268846efcef7785a8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461746f6d617469632f6c61726176656c2d63617274612d64656c2d646f63656e74652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datomatic/laravel-carta-del-docente)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/769eb7d08e069739c8a5b2b68fe9c95fb3a853086976d3c94c62a8da7ee79295/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6461746f6d617469632f6c61726176656c2d63617274612d64656c2d646f63656e74652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6c6162656c3d636f64652532307374796c6526636f6c6f723d354645384233267374796c653d666f722d7468652d6261646765)](https://github.com/datomatic/laravel-carta-del-docente/actions/workflows/fix-php-code-style-issues.yml)[![Total Downloads](https://camo.githubusercontent.com/36306ef534ab3ffd260216d1f002156f53a60ad509804f1e31fa3f0753947067/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461746f6d617469632f6c61726176656c2d63617274612d64656c2d646f63656e74652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datomatic/laravel-carta-del-docente)

Questo è un wrapper Laravel per il pacchetto [datomatic/carta-del-docente](https://github.com/datomatic/carta-del-docente).

Requisiti
---------

[](#requisiti)

- Laravel &gt;= 9.0
- PHP &gt;= 8.0
- ext-soap

Installazione
-------------

[](#installazione)

Puoi installare il pacchetto via composer:

```
composer require datomatic/laravel-carta-del-docente
```

Configurazione
--------------

[](#configurazione)

Per utilizzare la carta del docente in ambiente di test non serve fare nulla, mentre per generare il certificato per l'ambiente di produzione bisogna seguire la seguente [guida](https://github.com/datomatic/carta-del-docente#come-generare-un-certificato-valido).

In ambiente di produzione dobbiamo andare a inserire questi due valori nel file .env:

- `CARTA_DEL_DOCENTE_CERTIFICATE=` mettendo il path al certificando partendo dalla root del progetto (evitate di metterlo accessibile da esterno, quindi non mettetelo nella cartella public)
- `CARTA_DEL_DOCENTE_CERTIFICATE_PASSWORD` la password del certificato
- opzionalmente `CARTA_DEL_DOCENTE_ENV` perchè di default viene preso `APP_ENV` del progetto

È possibile pubblicare le configurazioni della carta-del-docente con il comando:

```
php artisan vendor:publish --tag="laravel-carta-del-docente-config"
```

Questo è il contenuto del file di configurazione pubblicato:

```
return [
    'certificatePath' => env('CARTA_DEL_DOCENTE_CERTIFICATE'),
    'certificatePassword' => env('CARTA_DEL_DOCENTE_CERTIFICATE_PASSWORD'),
    'environment' => env('CARTA_DEL_DOCENTE_ENV', config('app.env')),
];
```

Utilizzo
--------

[](#utilizzo)

L'utilizzo del pacchetto è molto semplice e si può fare attraverso due modi: facade e service container. Per i dettagli delle funzioni potete guardare il pacchetto base [datomatic/carta-del-docente](https://github.com/datomatic/carta-del-docente) e la [documentazione ufficiale](https://www.cartadeldocente.istruzione.it/static/Linee%20Guida%20Esercenti.pdf).

### Facade

[](#facade)

La Facade è il metodo più semplice perché basta richiamare `CartaDelDocente` e otteniamo direttamente un client dal quale possiamo staticamente richiamare le funzionalità.

```
use Datomatic\LaravelCartaDelDocente\Facades\CartaDelDocente;

CartaDelDocente::merchantActivation();
CartaDelDocente::check(1, 'voucher');
CartaDelDocente::confirm(1, 'voucher', 52.5);
```

### Service container

[](#service-container)

Tramite service container bisogna richiamare la classe `Datomatic\CartaDelDocente\CartaDelDocenteClient` per ottenere l'istanza del client:

```
use Datomatic\CartaDelDocente\CartaDelDocenteClient;

//Resolve
$client = App::make(CartaDelDocenteClient::class);
$client = app(CartaDelDocenteClient::class);
$client = resolve(CartaDelDocenteClient::class);

//Automatic Injection
public function __construct(public CartaDelDocenteClient $client){}

$client->merchantActivation();
$client->check(1, 'voucher');
$client->confirm(1, 'voucher', 52.5);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Alberto Peripolli](https://github.com/trippo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance81

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50.7% 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

Every ~155 days

Recently: every ~183 days

Total

9

Last Release

63d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/497169?v=4)[Alberto Peripolli](/maintainers/trippo)[@trippo](https://github.com/trippo)

---

Top Contributors

[![trippo](https://avatars.githubusercontent.com/u/497169?v=4)](https://github.com/trippo "trippo (37 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (22 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (14 commits)")

---

Tags

laravelDatomaticlaravel-carta-del-docente

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/datomatic-laravel-carta-del-docente/health.svg)

```
[![Health](https://phpackages.com/badges/datomatic-laravel-carta-del-docente/health.svg)](https://phpackages.com/packages/datomatic-laravel-carta-del-docente)
```

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[datomatic/laravel-fatture-in-cloud

Laravel wrapper for Fatture in Cloud API v2

104.1k](/packages/datomatic-laravel-fatture-in-cloud)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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