PHPackages                             alfreddagenais/php-word-count-utf8 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alfreddagenais/php-word-count-utf8

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alfreddagenais/php-word-count-utf8
==================================

PHP implementation of Word-Count for UTF-8 text

1.0.2(5y ago)41.9k1GNU GPLv3PHPPHP ^7.2

Since Jul 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/alfreddagenais/php-word-count-utf8)[ Packagist](https://packagist.org/packages/alfreddagenais/php-word-count-utf8)[ RSS](/packages/alfreddagenais-php-word-count-utf8/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (1)Versions (4)Used By (0)

PHP Word-Count for UTF-8 text
=============================

[](#php-word-count-for-utf-8-text)

[![build](https://github.com/alfreddagenais/php-word-count-utf8/workflows/build/badge.svg?branch=master)](https://github.com/alfreddagenais/php-word-count-utf8/workflows/build/badge.svg?branch=master) [![Love Open Source](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033) [![Stars](https://camo.githubusercontent.com/ef02e2b97ce35d6f7980948ab0b6aa3aa7781443eb46a4e87140114609f4d4b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638)](https://camo.githubusercontent.com/ef02e2b97ce35d6f7980948ab0b6aa3aa7781443eb46a4e87140114609f4d4b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638) [![Forks](https://camo.githubusercontent.com/bbbe9698ba16259516e6ffc91e9aea7f370aaa8c26a8538368ace7f6b101fd26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638)](https://camo.githubusercontent.com/bbbe9698ba16259516e6ffc91e9aea7f370aaa8c26a8538368ace7f6b101fd26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638) [![Issues](https://camo.githubusercontent.com/4784a4f20cd5d9b09455ffe7eaea4dd67519f5edd972b07d8d356016040cdcfd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638)](https://camo.githubusercontent.com/4784a4f20cd5d9b09455ffe7eaea4dd67519f5edd972b07d8d356016040cdcfd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f616c66726564646167656e6169732f7068702d776f72642d636f756e742d75746638) [![License](https://camo.githubusercontent.com/b73dc9ad399995d7add53d125c6c776a9a0bd4f2283b9f9aa62239c1b9b51845/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f416b61736852616a7075726f6869742f636c6970706572)](https://camo.githubusercontent.com/b73dc9ad399995d7add53d125c6c776a9a0bd4f2283b9f9aa62239c1b9b51845/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f416b61736852616a7075726f6869742f636c6970706572) [![Visitors](https://camo.githubusercontent.com/b5dc7c4854595085fad74270595b5cb0f822fc742170bd684cd706043efd982b/68747470733a2f2f76697369746f722d62616467652e676c697463682e6d652f62616467653f706167655f69643d616c66726564646167656e6169732d7068702d776f72642d636f756e742d757466382e76697369746f722d6261646765)](https://camo.githubusercontent.com/b5dc7c4854595085fad74270595b5cb0f822fc742170bd684cd706043efd982b/68747470733a2f2f76697369746f722d62616467652e676c697463682e6d652f62616467653f706167655f69643d616c66726564646167656e6169732d7068702d776f72642d636f756e742d757466382e76697369746f722d6261646765) [![Tweet](https://camo.githubusercontent.com/2a5bde16af84a95e9a2abee353901a484045737dbd48d6dbf119835114bc595a/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f75726c3d68747470732533412532462532466769746875622e636f6d253246616c66726564646167656e6169732532467068702d776f72642d636f756e742d75746638)](https://camo.githubusercontent.com/2a5bde16af84a95e9a2abee353901a484045737dbd48d6dbf119835114bc595a/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f75726c3d68747470732533412532462532466769746875622e636f6d253246616c66726564646167656e6169732532467068702d776f72642d636f756e742d75746638)

Simple PHP implementation of Word-Count for UTF-8 text. Inspired by [sylae/word-count](https://github.com/sylae/word-count) 😗.

🙌 Usage
-------

[](#-usage)

`composer require alfreddagenais/php-word-count-utf8`

```
