Skip to content

karatemuffin/rsbparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sokrates RSb Parser

Der RSb Parser ist ein in PHP geschriebenes Tool und dient dazu Behördenbriefe der österreichischen Post im Schulalltag zu bedrucken. Es analysiert die von Sokrates generierte Mahnungen und erzeugt ein PDF um die RSb Klebeettiketten entsprechend zu bedrucken.

The RSb Parser is a tool written in PHP to be used in austrian schools. It analyzes letters (early warnings to parents) generated by Sokrates and creates a PDF so you can print on RSb Klebeettiketten.

Possible Workflow

Until now every teacher had to write the RSb envelopes by hand, this took several hours, now it can be automated.

┌──────────┬──────────────────┐    ┌──────────┬───┐    ┌──────────┬───────────────────────────┐
│ Sokrates │                  │    │RSb Parser│   │    │Office    │                           │
├──────────┘                  │    ├──────────┘   │    ├──────────┘                           │
│                             │    │              │    │                                      │
│  ┌────────┐     ┌────────┐  │    │  ┌────────┐  │    │  ┌────────┐  ┌────────┐  ┌────────┐  │
│  │ Enter  │     │Generate│  │    │  │Generate│  │    │  │Print   │  │ Send   │  │Print   │  │
│  │ Data   ├────►│Letters ├──┼────┼─►│Envelope├──┼────┼─►│Envelope├─►│ Letter │◄─┤Letters │  │
│  │        │     │(PDF)   │  │    │  │(PDF)   │  │    │  │        │  │        │  │        │  │
│  └────────┘     └───┬────┘  │    │  └────────┘  │    │  └────────┘  └────────┘  └────────┘  │
│                     │       │    │              │    │                              ▲       │
│                     │       │    │              │    │                              │       │
└─────────────────────┼───────┘    └──────────────┘    └──────────────────────────────┼───────┘
                      │                                                               │
                      └───────────────────────────────────────────────────────────────┘

Installation

Debian

    sudo apt update
    sudo apt install wget php-cgi php-cli php-zip unzip poppler-utils php-mbstring php-gd

HTML/PHP dependencies

  • Composer

  • pdftotext

  • mPDF

  • W3.CSS

    wget -O composer-setup.php https://getcomposer.org/installer
    mkdir -p css
    wget -O css/w3.css https://www.w3schools.com/w3css/4/w3.css
    php ./composer-setup.php --install-dir=.
    php ./composer.phar require spatie/pdf-to-text
    php ./composer.phar require mpdf/mpdf
    

Usage

Configure the parser in the config.php file, and follow the instructions after loading the index.html.