icinga-php-library/README.md

50 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2021-05-03 16:25:51 +02:00
# Icinga PHP Library - IPL
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
This project bundles all Icinga PHP libraries into one piece and can be integrated as library into Icinga Web 2.
2018-11-06 13:34:30 +01:00
2021-05-04 11:30:37 +02:00
## Requirements
* [Icinga Web 2](https://github.com/Icinga/icingaweb2) (>= 2.9)
2022-06-15 14:38:36 +02:00
* PHP (>= 7.2)
2021-05-04 11:30:37 +02:00
2021-05-04 11:40:55 +02:00
## Bundled Parts
* [ipl-html](https://github.com/Icinga/ipl-html)
2021-06-15 10:24:40 +02:00
* [ipl-i18n](https://github.com/Icinga/ipl-i18n)
2021-05-04 11:40:55 +02:00
* [ipl-orm](https://github.com/Icinga/ipl-orm)
2022-12-09 17:50:21 +01:00
* [ipl-scheduler](https://github.com/Icinga/ipl-scheduler)
2021-05-04 11:40:55 +02:00
* [ipl-sql](https://github.com/Icinga/ipl-sql)
* [ipl-stdlib](https://github.com/Icinga/ipl-stdlib)
* [ipl-validator](https://github.com/Icinga/ipl-validator)
* [ipl-web](https://github.com/Icinga/ipl-web)
2021-05-03 16:25:51 +02:00
## Installation
2018-11-09 21:42:17 +01:00
2021-05-03 16:25:51 +02:00
Please download the latest release and install it in one of your configured library paths. The default library
path for Icinga Web 2 installations is: `/usr/share/icinga-php`
2018-11-09 21:42:17 +01:00
Download or clone this repository there (e.g. `/usr/share/icinga-php/ipl`) and you're done.
2018-11-06 13:34:30 +01:00
> **Note**: Do NOT use the default branch, it will not work! Checking out a
2022-12-13 15:04:30 +01:00
> branch like `stable/0.10.1` or a tag like `v0.10.1` is fine.
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
### Examples
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
**Sample Tarball installation**
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
```sh
INSTALL_PATH="/usr/share/icinga-php/ipl"
2022-12-13 15:04:30 +01:00
INSTALL_VERSION="v0.10.1"
2021-11-12 13:09:14 +01:00
mkdir "$INSTALL_PATH" \
&& wget -q "https://github.com/Icinga/icinga-php-library/archive/$INSTALL_VERSION.tar.gz" -O - \
2021-05-03 16:25:51 +02:00
| tar xfz - -C "$INSTALL_PATH" --strip-components 1
```
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
**Sample GIT installation**
2018-11-06 13:34:30 +01:00
2021-05-03 16:25:51 +02:00
```
INSTALL_PATH="/usr/share/icinga-php/ipl"
2022-12-13 15:04:30 +01:00
INSTALL_VERSION="stable/0.10.1"
git clone https://github.com/Icinga/icinga-php-library.git "$INSTALL_PATH" --branch "$INSTALL_VERSION"
2021-05-03 16:25:51 +02:00
```