Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ZoneSettings missing Get all Zone settings method

Open
#166 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api

Research direction

Start in the ZoneSettings class and compare its existing methods with the Cloudflare zone-settings-properties endpoint linked in the issue. Verify the requested get-all-settings behavior and inspect nearby API method patterns before determining the needed coverage. Done means the library exposes this zone settings request consistently and its response behavior is verified.

Written by the indexing model from the issue text.

Description

Hi,

I need to get all the settings for a specific zone, like this endpoint #zone-settings-properties.
Which I initially search for in the ZoneSettings class, but I didn't seems to be in this class, neither in the rest of the code.

Is it really missing? Do you plan to add it ?

I was able to get the wanted result by adding this to the ZoneSettings class:

    public function getSettings($zoneID)
    {
        $return = $this->adapter->get(
            'zones/' . $zoneID . '/settings/'
        );
        $body   = json_decode($return->getBody());

        if ($body->success) {
            return $body->result;
        }

        return false;
    }
Dominant language
PHP
Stars
674
Forks
268
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cloudflare-php

All issues in cloudflare/cloudflare-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.