GithubHelp home page GithubHelp logo

studizz's Introduction

Studizz API Package for Laravel

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

Installation

You can install the package via composer:

composer require amphibee/studizz

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

This package provides two main services: ContactService and FormationService. You can access these services through the Studizz facade.

Contacts

Create a Contact

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

$contactData = [
    'firstname' => 'John',
    'lastname' => 'Doe',
    'email' => '[email protected]',
    '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

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

Formations

Get All Formations

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

Campus

Get All Campus

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

Testing

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

./vendor/bin/pest

Contributing

Please see CONTRIBUTING.md for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

studizz's People

Contributors

ogorzalka avatar renovate[bot] avatar

Watchers

Lucian avatar  avatar Loïc HALL avatar

studizz's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php ^7.4|^8.0
  • guzzlehttp/guzzle ^7.0
  • illuminate/support ^8.0|^9.0|^10.0|^11.0
  • illuminate/container ^8.0|^9.0|^10.0|^11.0
  • illuminate/contracts ^8.0|^9.0|^10.0|^11.0
  • illuminate/http ^8.0|^9.0|^10.0|^11.0
  • pestphp/pest ^2.34
  • mockery/mockery ^1.6
  • laravel/pint ^1.16

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.