Skip to content

Simple Proxy Server für ChurchTools (church.tools) to forward API requests avoiding CORS problems.

Notifications You must be signed in to change notification settings

stevenbuehner/ChurchToolsProxyServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Church Tools Proxy-Server

Simple proxy server for ChurchTools (church.tools) to forward API requests and avoiding CORS problems.

Setup

Steps to initialize the project:

  1. Either import via composer: composer require stevenbuehner/churchtoolsproxyserver or copy the github project and run composer dump-autoload
  2. Copy proxy.php and configure it with your credentials

For testing use cases you can run your server via: php -S localhost:8080

Usage

Send a POST-request from any allowed Host (see setup of proxy.php) to your proxy.php.

Required POST Parameters are:

Parameter-Name Values Required Example
m Name of ChurchTools Module true "churchcal/ajax"
f Name of ChurchTools function (see) true "getMasterData"
data Additional data to forward to ChurchTools false ['category_ids' => [1,2,3]]

Example-Client

An example VueJs App using this proxy can be found at: https://github.com/stevenbuehner/ChurchToolsVuejsClientExample

About

Simple Proxy Server für ChurchTools (church.tools) to forward API requests avoiding CORS problems.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages