finish converting to php-lib-config and also convert to php-lib-json