Unable to use php project (cron-expressions)
<p>I'm trying to use <a href="https://github.com/mtdowling/cron-expression" rel="nofollow">this project</a>. I downloaded the files. Got the project's folder, uncompressed it and then copied the directory "Cron" under the "src" directory to another location where I created the listed php file to test the project. The "Cron" folder contained the following files:</p>

<pre><code>AbstractField.php
CronExpression.php //Main class
DayOfMonthField.php
DayOfWeekField.php
FieldFactory.php
FieldInterface.php
HoursField.php
MinutesField.php
MonthField.php
YearField.php
</code></pre>

<p>I copied the sample php file from the project's main page to test the project, here is the file (i.e. cron.php):</p>

<pre><code>&lt;?php
//require_once '/vendor/autoload.php'; //This line isn't valid because the mentioned path doesn't exist anymore. So I commented it but I can't find how to replace it.
// Works with predefined scheduling definitions
$cron = Cron\CronExpression::factory('@daily');
$cron-&gt;isDue();
echo $cron-&gt;getNextRunDate()-&gt;format('Y-m-d H:i:s');
echo $cron-&gt;getPreviousRunDate()-&gt;format('Y-m-d H:i:s');

// Works with complex expressions
$cron = Cron\CronExpression::factory('3-59/15 2,6-12 */15 1 2-5');
echo $cron-&gt;getNextRunDate()-&gt;format('Y-m-d H:i:s');

// Calculate a run date two iterations into the future
$cron = Cron\CronExpression::factory('@daily');
echo $cron-&gt;getNextRunDate(null, 2)-&gt;format('Y-m-d H:i:s');

// Calculate a run date relative to a specific time
$cron = Cron\CronExpression::factory('@monthly');
echo $cron-&gt;getNextRunDate('2010-01-12 00:00:00')-&gt;format('Y-m-d H:i:s');
?&gt;
</code></pre>

<p>So my file "cron.php" exists in the same folder as the directory "Cron" which contains the project files listed earlier. When I execute my php file <code>php cron.php</code>, I get the following error:</p>

<pre><code>[29-Apr-2013 15:17:23 UTC] PHP Fatal error:  Class 'Cron\CronExpression' not found in E:\PHP\Libraries\Cron\cron.php on line 3
</code></pre>

<p>What am I doing wrong here ?!</p>
