PHP Code Samples
This page contains code samples written to help PHP developers work with the Marketing Cloud SOAP API.
What Are PHP Code Samples
These code samples illustrate common actions a PHP developer might perform when working with the Marketing Cloud SOAP API.
Why Use PHP Code Samples
These code samples can help you understand how to perform certain actions in a PHP environment. These code samples can be modified or changed to match your needs.
Available PHP Code Samples
- Add an Attribute
- Connecting to the API using PHP
- Perform a Data Extract with the SOAP API
- Create a List
- Create a Query Activity
- Create a Subscriber
- Create a Triggered Send Email Campaign Workflow
- Create an Email
- Create an Import Definition
- Create, Retrieve, Update, and Delete Folders
- Access Child Account Objects
- Manage Data in Data Extensions
- Manage Subscriber Status for One or All Lists
- Manage Subscribers On Lists
- Perform a Campaign
- Refresh a Group
- Retrieve Open Events Details
- Retrieve Subscribers by Subscriber Key
- Retrieve Subscribers Using ListID
- Retrieve a List from an Account
- Retrieve a Subscriber
- Retrieve an Email
- Retrieve an Item from Your Portfolio
- Retrieve the SubscriberStatusEvent
- Schedule an Email Send Definition
- Send an Email Using a TriggeredSend Object
- Start a Triggered Send Definition
- Update Subscriber Attributes using the Update Method
- Use Regular Expressions to Validate Email Addresses
- Work with the SOAP API