dev-master
9999999-dev http://github.com/jorenvh/CountifyCounting the words in a textarea
MIT
The Requires
- php >=5.4
laravel textarea laravel 5 count words countify
Wallogit.com
2017 © Pedro Peláez
Counting the words in a textarea
Laravel 5 package to count the words in a textarea., (*1)
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
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)
Counting the words in a textarea
MIT
laravel textarea laravel 5 count words countify