Contact

Contact

link

https://github.com/austinheap/php-security-txt

link

https://packagist.org/packages/austinheap/php-security-txt

link

https://austinheap.github.io/php-security-txt/classes/AustinHeap.Security.Txt.SecurityTxt.html

link

https://securitytext.org/

package

php-security-txt

Methods

Add a contact.

addContact(string $contact) : \AustinHeap\Security\Txt\SecurityTxt

Arguments

$contact

string

Response

\AustinHeap\Security\Txt\SecurityTxt

Add contacts.

addContacts(array $contacts) : \AustinHeap\Security\Txt\SecurityTxt

Arguments

$contacts

array

Response

\AustinHeap\Security\Txt\SecurityTxt

Get the contacts.

getContacts() : array

Response

array

Determines if a contact exists.

hasContact(string $contact) : boolean

Arguments

$contact

string

Response

boolean

Determines if an array of contacts exists.

hasContacts(array $contacts) : boolean

Arguments

$contacts

array

Response

boolean

Remove a contact.

removeContact(string $contact) : \AustinHeap\Security\Txt\SecurityTxt

Arguments

$contact

string

Response

\AustinHeap\Security\Txt\SecurityTxt

Remove contacts.

removeContacts(array $contacts) : \AustinHeap\Security\Txt\SecurityTxt

Arguments

$contacts

array

Response

\AustinHeap\Security\Txt\SecurityTxt

Set the contacts.

setContacts(array $contacts) : \AustinHeap\Security\Txt\SecurityTxt

Arguments

$contacts

array

Response

\AustinHeap\Security\Txt\SecurityTxt

Validates a contact.

validContact(string $contact) : boolean
string

string $contact

Arguments

$contact

string

Response

boolean

Validates an array of contacts.

validContacts(array $contacts, boolean $use_keys = false) : boolean

Arguments

$contacts

array

$use_keys

boolean

Response

boolean

Properties

The security contact(s).

contacts : array
var

Type(s)

array