diff --git a/README.rst b/README.rst index 906fbba..8fb2a4d 100644 --- a/README.rst +++ b/README.rst @@ -68,6 +68,11 @@ Installs the php-imagick package. Installs the php-imap package. +``php.json`` +------------ + +Installs the php-json package. + ``php.ldap`` ------------ diff --git a/php/json.sls b/php/json.sls new file mode 100644 index 0000000..2d80a2f --- /dev/null +++ b/php/json.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-json: + pkg: + - installed + - name: {{ php.json_pkg }} diff --git a/php/map.jinja b/php/map.jinja index 029d76f..ce8ee29 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -7,6 +7,7 @@ 'curl_pkg': 'php5-curl', 'fpm_pkg': 'php5-fpm', 'gd_pkg': 'php5-gd', + 'json_pkg': 'php5-json', 'mbstring_pkg': 'php5', 'mcrypt_pkg': 'php5-mcrypt', 'memcache_pkg': 'php5-memcache', @@ -32,6 +33,7 @@ 'curl_pkg': 'curl', 'fpm_pkg': 'php-fpm', 'gd_pkg': 'php-gd', + 'json_pkg': 'php-common', 'mbstring_pkg': 'php-mbstring', 'mcrypt_pkg': 'php-mcrypt', 'memcache_pkg': 'php-pecl-memcache',