<commit_before># LaraWorker

LaraWorker is bootstrap for integration IronWorker to Laravel.

## Installation

Add next repository to laravel `composer.json`

`"iron-io/laraworker": "dev-master",`

Then run `composer update`

After that you must install commands for upload and run IronWorker via next console command:

`php vendor/iron-io/laraworker/LaraWorker.php -i true`

This script will also copy worker example `ExampleLaraWorker.php` to workers directory in root of your project.

Then you can upload your worker with next console command:

`php artisan ironworker:upload --worker_name=ExampleWorker --exec_worker_file_name=ExampleWorker.php` 

Or upload all of your workers which are in workers directory

`php artisan ironworker:upload --worker_name=* --exec_worker_file_name=*`

You can run your worker in code with command

`Queue::pushRaw("This is Hello World payload :)", 'ExampleWorker'));`

Or run from console

`php artisan ironworker:run --queue_name=ExampleWorker`

## License

This software is released under the BSD 2-Clause License. You can find the full text of
this license under LICENSE.txt in the module's root directory.<commit_msg>changes to readme<commit_after>
### What is LaraWorker

LaraWorker is a helper package that makes integrating your Laravel application with Iron.io's IronWorker very easy!

### Why IronWorker

IronWorker makes it super easy to add queuing and background processing to your Laravel applications.

### Installation

1. Add the following packages to the requires section of `composer.json`

`"iron-io/iron_mq": "dev-master",`
`"iron-io/iron_worker": "dev-master",`
`"iron-io/laraworker": "dev-master",`

2. Run `composer update`

3. Install the IronWorker artisan commands for upload and run

`php vendor/iron-io/laraworker/LaraWorker.php -i true`

This script will also copy worker example `ExampleLaraWorker.php` to workers directory in root of your project.
asd

### Upload your workers to Iron.io

To upload a single worker:

`php artisan ironworker:upload --worker_name=ExampleWorker --exec_worker_file_name=ExampleWorker.php` 

To upload all workers:

`php artisan ironworker:upload --worker_name=* --exec_worker_file_name=*`


### Run your worker from the console

`php artisan ironworker:run --queue_name=ExampleWorker`



### Queuing up your worker from inside your Laravel Application

`Queue::pushRaw("This is Hello World payload :)", 'ExampleWorker'));`



### License

This software is released under the BSD 2-Clause License. You can find the full text of
this license under LICENSE.txt in the module's root directory.
{'fraction_non_alphanumeric': 0.08388094317742559, 'fraction_numerical': 0.001932740626207963, 'mean_word_length': 5.046728971962617, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5278363', 'n_tokens_mistral': 747, 'n_tokens_neox': 732, 'n_words': 304}