Getting mixed content for a site with our PHP SDK

Make sure you've read the getting started guide first. Once that's done, you should have our package & authentication ready to go.

Getting broken links

Here's how to get the mixed content for a given site.

$ohDear->site($siteId)->mixedContent();

//alternatively you could do this
$ohDear->mixedContent($siteId);

Both methods above will return an array of OhDear\PhpSdk\Resources\MixedContentItem instances.

You can get a few properties of a a mixed content item.

// The name of the element that was detected as mixed content.
$mixedContentItem->elementName;

// The url of the detected mixed content.
$mixedContentItem->mixedContentUrl;

// The url where the mixed content was found.
$mixedContentItem->foundOnUrl;