Puppet::Type.newtype(:php_extension) do
  @doc = "Install a PHP extension within a version of PHP"

  ensurable do
    newvalue :present do
      provider.create
    end

    newvalue :absent do
      provider.destroy
    end

    defaultto :present
  end

  newparam(:name) do
    isnamevar
  end

  newparam(:version) do
    defaultto '>= 0'
  end

end

Puppet::Type.newtype(:php_extension) do
  @doc = "Install a PHP extension within a version of PHP"

  ensurable do
    newvalue :present do
      provider.create
    end

    newvalue :absent do
      provider.destroy
    end

    defaultto :present
  end

  newparam(:name) do
    isnamevar
  end

  newparam(:extension) do
  end

  newparam(:version) do
    defaultto '>= 0'
  end

  newparam(:package_name) do
  end

  newparam(:package_url) do
  end

  newparam(:phpenv_root) do
  end

  newparam(:php_version) do
  end

end

Add extra params to extension type
Add extra params to extension type
