Download the PHP package carmelosantana/sendadf without Composer
On this page you can find all versions of the php package carmelosantana/sendadf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carmelosantana/sendadf
More information about carmelosantana/sendadf
Files in carmelosantana/sendadf
Package sendadf
Short Description Library to build valid Auto-Lead Data Format ADF/XML leads.
License MIT
Informations about the package sendadf
PHP library that builds valid Auto-Lead Data Format ADF/XML leads.
- Install
- Usage
- Basic lead
- Output
- Default values
- Examples
- Support
- Funding
- Changelog
- License
Supports
Features
- Complete ADF implementation
- Validate tags and attributes (optional)
- Custom tags and attributes
- Data entry via an associative
array
,object
, orJSON
- Attempts date conversion to ISO 8601:1988
- Default attributes for
name
,phone
,prospect
, andvehicle
Install
Include SendADF in your project with Composer:
Requirements:
Usage
Basic lead
This example lead represents the minimum data required to comply with ADF specifications.
Output
Basic output with no tabs.
Pretty print output.
Default values
Default attribute values are added if none are supplied. This is to adhere to the ADF standard.
prospect
tag is opened with status new without callingaddProspect
.addRequestdate
current server time is used as the default forrequestdate
when none is provided.name
part and type are provided.phone
type and time are provided.
Default values can be avoided by using addProspectparent_node
and addNode
as seen in example 3.
Sending empty values as shown in example 1 can disable these attributes as well.
Examples
- Bare minimum to get started
- Full document with all elements and attribute examples
- Avoid default values
- Manually open and close nodes
- Disable validation
- Custom tags and attributes
- Data entry via
arrays
,objects
andJSON
Support
Community support available on Discord.
Funding
If you find this project useful or use it in a commercial environment please consider donating today with one of the following options.
- Bitcoin
bc1qhxu9yf9g5jkazy6h4ux6c2apakfr90g2rkwu45
- Ethereum
0x9f5D6dd018758891668BF2AC547D38515140460f
- Patreon
patreon.com/carmelosantana
- PayPal
https://www.paypal.com/donate
Changelog
- 0.3.0 - Aug 6, 2024
- Fix psr-4 namespace
- Update all methods from underscores to camelCase
- Update PHP requirements
License
The code is licensed MIT and the documentation is licensed CC BY-SA 4.0.