Download the PHP package wpkg/wpkg-php without Composer
On this page you can find all versions of the php package wpkg/wpkg-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wpkg/wpkg-php
More information about wpkg/wpkg-php
Files in wpkg/wpkg-php
Package wpkg-php
Short Description WPKG config generator on PHP
License MIT
Homepage https://wpkg.org/
Informations about the package wpkg-php
WPKG XML configuration generator
Library written on PHP7 for generating XML files with configuration for WPKG installer.
composer require drteam/wpkg-php
Check links for more info about WPKG.
If you need Active Directory support for generation hosts.xml
from domain PCs you can
look at WPKG-AD project, which based on this library.
Table of Contents
- How to create XML
- Config
- Config.xml file
- Note about translations
- Hosts
- Single host
- Hosts.xml file
- Computers from Active Directory
- Profiles
- Single profile
- Profiles.xml file
- Packages
- Single package
- Packages.xml file
- Config
- How to import existed XML
- Import Config.xml file
- Get Support
- Some links
How to create XML
Some examples with descriptions you can find here.
Config
Configuration settings for runtime behavior of wpkg.js
Config.xml file
Using the Config class, you can override the settings, if you specified a value different from the default value, your parameter will be added to the XML file.
If you do not specify anything, a configuration with default parameters will be generated.
Result of execution:
Note about translations
At the moment, translations (creators of the WPKG project call them languages) are available for the following languages:
- English
- French
- German
- Italian
- Russian (added by me)
- Spanish
Translations was taken from the config.xml file that was in the wpkg-1.3.1-bin.zip archive from the official website of the WPKG project.
All available translations of wpkg-php you can find here.
If you do not see your language on the list and want to help the project, then you can suggest your translation variant via issues or PR. Pay attention to LCID, these are unique language identifiers, a complete list of them you can find here.
Hosts
Mappings between machine names and profile names.
Single host
If you want generate few hosts in separated files:
Result is:
You also can set array of profiles:
And in result must be:
Hosts.xml file
If you need one large file with all your hosts:
Result file hosts.xml into the wpkg_path folder
Computers from Active Directory
This class based on adLdap library, so you can use any configuration parameters from this library.
Basic usage:
You should saw something like this:
Profiles
Specifies which packages will be installed/executed for each WPKG profile.
Single profile
If you want generate few profiles in separated files:
Result file (with name like
You as in hosts also can set array of packages
or depends
.
Profiles.xml file
If you need one large file with all your profiles:
Result:
Packages
Defines software packages (commands for WPKG to install/uninstall programs, etc.)
Single package
If you want generate few packages in separated files:
Result:
Packages.xml file
If you need one large file with all your packages:
Result:
How to import existed XML
Import Config.xml file
First you need enable the importer class
Now inside $_hosts
variable you can find the \WPKG\Hosts object with all hosts which was imported.
Same operation for all other configurations, library can check which config you are loaded.
Get Support!
- Discord - Join us on Discord.
- GitHub Issues - Got issues? Please tell us!
- Roadmap - Want to contribute? Get involved!
Some links
- Main the WPKG website - https://wpkg.org/
- WPKG documentation page - https://wpkg.org/Documentation
- Article on Wikipedia - https://en.wikipedia.org/wiki/WPKG_(software)
All versions of wpkg-php with dependencies
ext-xml Version *
wpkg/wpkg-js Version ^1.3.1
adldap2/adldap2 Version ^8.0
spatie/array-to-xml Version ^2.7
evilfreelancer/yaml-php Version ^0.4.0