cedx/yii2-akismet Akismet connector for the Yii Framework. Add Akismet to your Yii applications so you don't have to worry about spam again.

commentvalidationakismetspam

Akismet for Yii

Yii Framework Runtime Release License Downloads Coverage Build

Prevent comment spam using the Akismet connector for Yii, high-performance PHP framework.

Documentation

Development

License

Akismet for Yii is distributed under the MIT License.

Changelog

Changelog

Version 8.0.0

  • Breaking change: raised the required PHP version.
  • Breaking change: using camelcase instead of all caps for constants.
  • Breaking change: using PHP 7.4 features, like arrow functions and typed properties.
  • Added support for the X-akismet-pro-tip HTTP header.
  • Added a user guide based on MkDocs.
  • Added the CheckResult enumeration.
  • Added the ClientException exception class.
  • Added the Comment->recheckReason property.
  • Modified the package layout.
  • Updated the package dependencies.

Version 7.0.0

  • Breaking change: raised the required PHP version.
  • Breaking change: renamed the Client::EVENT_BEFORE_SEND constant to EVENT_REQUEST.
  • Breaking change: renamed the Client::EVENT_AFTER_SEND constant to EVENT_RESPONSE.
  • Breaking change: using PHP 7.1 features, like nullable types and void functions.

Version 6.0.0

  • Breaking change: changed the signature of most class constructors.
  • Breaking change: most class properties are now read-only.
  • Breaking change: removed the jsonSerialize() and __toString() methods from the Client class.
  • Added new values to the CommentType enumeration.
  • Updated the package dependencies.

Version 5.0.0

  • Breaking change: properties representing URLs as strings now use instances of the Psr\Http\Message\UriInterface interface.
  • Breaking change: the Blog->languages property is now an instance of ArrayObject class.
  • Added new unit tests.
  • Changed licensing for the MIT License.
  • The $date and $postModified properties of the Comment class now accept strings and timestamps.

Version 4.2.0

  • Added a fromJson() static method to the data classes.
  • Added new unit tests.
  • Enabled the strict typing.
  • Replaced phpDocumentor documentation generator by ApiGen.
  • Updated the package dependencies.

Version 4.1.0

  • Removed the dependency on the cedx/yii2-core module.

Version 4.0.0

  • Breaking change: removed the RequestEvent and RequestResponse classes.
  • Breaking change: renamed the Client::EVENT_REQUEST to EVENT_BEFORE_SEND.
  • Breaking change: renamed the Client::EVENT_RESPONSE to EVENT_AFTER_SEND.
  • Breaking change: replaced most of getters and setters by properties.
  • Added the DEBUG_HEADER, DEFAULT_ENDPOINT and VERSION constants to the Client class.
  • Added the CommentType enumeration.
  • Added validation rules to the data classes.
  • Dropped the dependency on the cedx/akismet module.
  • The data classes now extend from yii\base\Model.

Version 3.1.0

  • Ported the unit test assertions from TDD to BDD.
  • Updated the package dependencies.

Version 3.0.0

  • Breaking change: changed the type of the Blog->languages property to ArrayObject.
  • Added the Client->endPoint property.
  • Updated the package dependencies.

Version 2.0.0

  • Breaking change: changed the Blog->language string property for the languages array property.
  • Removed the dist build task.
  • Replaced the Codacy code coverage service by the Coveralls one.
  • Updated the package dependencies.

Version 1.1.0

  • Added the RequestEvent and ResponseEvent events.

Version 1.0.0

  • Initial release.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v7.0.0 is the latest of 11 releases



MIT license
Stats
7 github stars & 0 github forks
0 downloads in the last day
1 downloads in the last 30 days
207 total downloads