2017 © Pedro Peláez
 

library countify

Counting the words in a textarea

image

thunder/countify

Counting the words in a textarea

  • Monday, February 23, 2015
  • by jorenvh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Countify

Laravel 5 package to count the words in a textarea., (*1)

Instalation

Require it in your composer.json file, (*2)

"thunder/countify": "dev-master"

Add the service provider to the service providers array in config > app.php, (*3)

'thunder\Countify\CountifyServiceProvider',

Add an alisas to the aliasses array in config > app.php, (*4)

'Countify'  => 'thunder\Countify\Facades\Countify',

PSR4 autoload it, (*5)

"thunder\\Countify\\": "vendor/thunder/Countify/src/"

Do a composer update, (*6)

Publish the resources through this command, (*7)

php artisan vendor:publish

Usages

Include the published resources in your view. Jquery is required., (*8)

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="js/Countify.js"></script>

All that rests now is the textarea with an id of count, a span or div with an idea of words. And an hidden field with your laravel token., (*9)

<textarea id="count"></textarea>
<input id="_token" type="hidden" name="_token" value="{{ csrf_token() }}" />
<p>
    Aantal woorden: <span id="words"></span>
</p>

You're good to go know, enjoy it., (*10)

The Versions

23/02 2015

dev-master

9999999-dev http://github.com/jorenvh/Countify

Counting the words in a textarea

  Sources   Download

MIT

The Requires

  • php >=5.4

 

laravel textarea laravel 5 count words countify