title: Implement priorities (high, medium, low) in AWS SQS in Lumen
body: <p>How to pass priorities (high, medium, low) in AWS SQS in Lumen PHP.</p>
  <p><strong>Packages</strong></p>
  <pre><code>&quot;php&quot;: &quot;^7.3|^8.0&quot;,
  &quot;aws/aws-sdk-php&quot;: &quot;^3.158&quot;,
  &quot;laravel/lumen-framework&quot;: &quot;^8.0&quot;
  </code></pre>
  <p><strong>queqe.php</strong></p>
  <pre><code>&lt;?php
  
  return [
      'default' =&gt; env('QUEUE_CONNECTION', 'sqs'),
  
      'connections' =&gt; [
          'sqs' =&gt; [
              'driver' =&gt; 'sqs',
              'key' =&gt; 'key',
              'secret' =&gt; 'secret',
              'prefix' =&gt; 'https://sqs.us-east-1.amazonaws.com/1234567891452',
              'queue' =&gt; '',
              'suffix' =&gt; 'dev-test-app',
              'region' =&gt; 'us-east-1',
              'after_commit' =&gt; false,
          ]
      ],
  ];
  </code></pre>
  <p><strong>EmailJob.php</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Jobs;
  
  use Log;
  
  class EmailJob extends Job
  {
      public $queue;
  
      public function __construct($data)
      {
          $this-&gt;queue = $data['queue'];
      }
  
      public function handle()
      {
          Log::info('Email job '.$this-&gt;queue.' is run at start time - '.microtime(true));
      }
  }
  </code></pre>
  <p><strong>SmsJob.php</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Jobs;
  
  use Log;
  
  class SmsJob extends Job
  {
      public $queue;
  
      public function __construct($data)
      {
          $this-&gt;queue = $data['queue'];
      }
  
      public function handle()
      {
          Log::info('Sms job '.$this-&gt;queue.' is run at start time - '.microtime(true));
      }
  }
  </code></pre>
  <p><strong>Add to queues</strong></p>
  <pre><code>Queue::push(new EmailJob(array('queue' =&gt; 'email-test')));
  Queue::push(new SmsJob(array('queue' =&gt; 'sms-test')));
  </code></pre>
  <p>How do I set the priorities (high, medium, low) for email, sms jobs etc... Might also add new jobs.</p>