PHPackages                             amphibee/studizz - 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. amphibee/studizz

ActiveLibrary[API Development](/categories/api)

amphibee/studizz
================

A Laravel package to interact with the Studizz API

1.3.2(7mo ago)01.6k↑160%1[1 issues](https://github.com/AmphiBee/studizz/issues)[5 PRs](https://github.com/AmphiBee/studizz/pulls)MITPHPPHP ^7.4|^8.0CI failing

Since Dec 18Pushed 2w ago2 watchersCompare

[ Source](https://github.com/AmphiBee/studizz)[ Packagist](https://packagist.org/packages/amphibee/studizz)[ RSS](/packages/amphibee-studizz/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (8)Versions (22)Used By (0)

Studizz API Package for Laravel
===============================

[](#studizz-api-package-for-laravel)

This package provides a convenient way to interact with the Studizz API in Laravel applications.

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

[](#installation)

You can install the package via composer:

```
composer require amphibee/studizz
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="AmphiBee\Studizz\Providers\StudizzServiceProvider"
```

Add your Studizz API credentials to your `.env` file:

```
STUDIZZ_API_KEY=your_api_key
STUDIZZ_BASE_URL=https://sandbox.studizz.fr/api

```

Usage
-----

[](#usage)

This package provides several services: `ContactService`, `FormationService`, and `CampusService`. You can access these services through their respective facades.

### Debugging and Logging

[](#debugging-and-logging)

Each service provides a `getRawResponse()` method that returns the raw API response for debugging purposes:

```
use AmphiBee\Studizz\Facades\Contact;
use Illuminate\Support\Facades\Log;

try {
    $contactData = [
        'firstname' => 'John',
        'lastname' => 'Doe',
        // ... autres données
    ];

    $contactDto = new ContactDto($contactData);
    $newContact = Contact::create($contactDto);

    // Log the raw response
    Log::channel('api')->info('Studizz API Response', [
        'response' => Contact::getRawResponse()
    ]);

} catch (\Exception $e) {
    Log::channel('api')->error('Studizz API Error', [
        'message' => $e->getMessage(),
        'trace' => $e->getTraceAsString()
    ]);
}
```

To enable API logging, add this to your `config/logging.php`:

```
'channels' => [
    // ... autres canaux

    'api' => [
        'driver' => 'daily',
        'path' => storage_path('logs/api.log'),
        'level' => env('LOG_LEVEL', 'debug'),
        'days' => 14,
    ],
],
```

The logs will be stored in `storage/logs/api.log` with this format:

```
[2024-03-14 10:30:00] local.INFO: Studizz API - Données d'entrée {"data":{"firstname":"John","lastname":"Doe",...}}
[2024-03-14 10:30:01] local.INFO: Studizz API - Réponse {"response":{"id":"123",...}}

```

### Contacts

[](#contacts)

#### Create a Contact

[](#create-a-contact)

```
use AmphiBee\Studizz\Facades\Studizz;
use AmphiBee\Studizz\Dto\ContactDto;

$contactData = [
    'firstname' => 'John',
    'lastname' => 'Doe',
    'email' => 'john.doe@example.com',
    'phone' => '+33612345678',
    'degreeLevel' => 0,
    'teamAssigned' => '63e26d24383062596b949cff',
    'interestedFormations' => ['5bdeb73136da49690e78c510'],
    'rgpd' => true,
    'cV' => [
        'file' => file_get_contents('/path/to/file.pdf'),
        'filename' => 'file.pdf',
    ];
];

$contactDto = new AmphiBee\Studizz\Dto\ContactDto($contactData);

$newContact = AmphiBee\Studizz\Facades\Contact::create($contactDto);
```

#### Get Contact Fields

[](#get-contact-fields)

```
$fields = AmphiBee\Studizz\Facades\Contact::getFields();
```

### Formations

[](#formations)

#### Get All Formations

[](#get-all-formations)

```
$formations = AmphiBee\Studizz\Facades\Formation::getAll();
```

### Campus

[](#campus)

#### Get All Campus

[](#get-all-campus)

```
$formation = AmphiBee\Studizz\Facades\Campus::getAll();
```

Testing
-------

[](#testing)

To run the tests for this package, use the following command:

```
./vendor/bin/pest
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [AmphiBee](https://github.com/amphibee)

License
-------

[](#license)

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

```

```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance83

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~25 days

Recently: every ~1 days

Total

15

Last Release

212d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8435080f3e74b629258f291a62cb72aa9d63ee44d74e588f594dc6378c328fa2?d=identicon)[amphibee](/maintainers/amphibee)

---

Top Contributors

[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (29 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (19 commits)")[![chermant](https://avatars.githubusercontent.com/u/92034659?v=4)](https://github.com/chermant "chermant (16 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/amphibee-studizz/health.svg)

```
[![Health](https://phpackages.com/badges/amphibee-studizz/health.svg)](https://phpackages.com/packages/amphibee-studizz)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M149](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M130](/packages/roots-acorn)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M883](/packages/laravel-socialite)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.3k](/packages/larastan-larastan)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)

PHPackages © 2026

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