Skip to content

Exemple d'utilisation de la fonctionnalité mire d'autorisation

Notifications You must be signed in to change notification settings

HelloAsso/mire-autorisation-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mire d'aurotisation sample

Overview

This project demonstrate how to use Mire d'autorisation for helloasso partner

Prerequisites

To run this project, you will need:

  • PHP (preferably version 7.4 or higher)
  • Composer (for dependency management)
  • MySQL (or any compatible SQL database if you modify the config)

Installation

Step 1: Clone the Repository

First, clone the repository to your local machine or server:

git clone git@github.com:HelloAsso/mire-autorisation-sample.git
cd mire-autorisation-sample

Step 2: Install Dependencies

Install the necessary PHP dependencies using Composer:

composer install

Step 3: Configure Your Environment

Edit .env file to match your local environment

Step 4: Run SQL Migrations

If the application uses a SQL database, execute the SQL migrations provided to set up the initial tables:

php migration/run.php

Running the Application

Once configured, you can start the application with PHP's built-in server:

php -S localhost:8000 -t public

Access the application through your web browser:

http://localhost:8000

Optionally Secure the Application with HTTPS (using ngrok) For local HTTPS testing, use ngrok to expose your local environment with a secure SSL tunnel:

ngrok http 8000

This command will create a secure HTTPS tunnel to your localhost server on port 8000. Make sure your application is running on the specified port, or adjust the port number in the command accordingly.

Logging

The application uses Monolog for logging. Monolog is configured to log messages and errors based on the environment configuration provided in .env. This allows for easy monitoring and debugging of the application's behavior, especially during development or in production environments. By default log could be found on log.txt

About

Exemple d'utilisation de la fonctionnalité mire d'autorisation

Resources

Stars

Watchers

Forks