Installation
Requirements
Before installing Akismet for PHP, you need to make sure you have PHP and Composer, the PHP package manager, up and running.
You can verify if you're already good to go with the following commands:
php --version
# PHP 8.3.4 (cli) (built: Mar 13 2024 11:42:47) (NTS Visual C++ 2019 x64)
composer --version
# Composer version 2.7.2 2024-03-11 17:12:18
Installing with Composer package manager
1. Install it
From a command prompt, run:
composer require cedx/akismet
2. Import it
Now in your PHP code, you can use:
<?php use akismet\{
Author,
Blog,
CheckResult,
Client,
Comment
};