2017 © Pedro Peláez
 

library background-job

Simple background job creator

image

diversen/background-job

Simple background job creator

  • Tuesday, May 24, 2016
  • by diversen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 113 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

background-job

PHP class that executes background jobs (in a very simple way)., (*1)

Used this answer found on stackoverflow.com:, (*2)

http://stackoverflow.com/a/45966/464549, (*3)

You will need unix platform for this to work, (*4)

Install

composer require diversen/background-job

Usage

cd background-job && php example.php

example.php:, (*5)

<?php

include_once "bgJob.php"; // Only used if autoloader is not enabled
use diversen\bgJob;

$bg = new bgJob();
$command = "./example.sh";
$bg->execute($command, "output.txt", "pid.txt");

// View pid
echo $bg->pid . "\n";

This executes example.sh:, (*6)

#!/bin/bash
echo "Hi, I'm sleeping for 5 seconds..."
date
sleep 5
echo "all Done."

The Versions

24/05 2016

dev-master

9999999-dev https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

exec job background

24/05 2016

1.0.5

1.0.5.0 https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

exec job background

18/05 2016

1.0.3

1.0.3.0 https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

exec job background

18/05 2016

1.0.4

1.0.4.0 https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

exec job background

18/05 2016

1.0.2

1.0.2.0 https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

exec job background

18/05 2016

1.0.1

1.0.1.0 https://github.com/diversen/background-job

Simple background job creator

  Sources   Download

MIT

The Requires

  • php >=5.3.0