Download the PHP package johnniewalker/example-php-cli-application without Composer

On this page you can find all versions of the php package johnniewalker/example-php-cli-application. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package example-php-cli-application


= Say Dal - The Data Access Layer Generation Utility =

[Based on Say Pay - The Payroll Date Generation Utility]


== Quick Start ==

Check the configuration:

  1. Open the file, "saydal\saydal\saydal.php" in a text editor
  2. Check the locale and timezone settings are correct for your needs

Usage:

This is a command line utility that outputs a Comma-Separated Values (CSV) file containing the sales department payment dates for the remainder of this year.

Usage:
saydal.php <option>

<option> is the destination path and filename where the CSV data is written to.

Example:
php saydal.php myfile.csv

Where:
    'php' - is the interpreter that runs the script.
    'saydal.php' - the utility script
    'myfile.csv' - is the name of the file that you wish to write-to

Note: The filepath that you provide must not exist already. Otherwise an error will be shown.

== Requirements ==

The code has been tested extensively on two platforms throughout development:

The code has recently been run on PHP 7.1.7.

It does not rely on any other libraries or frameworks to function.

== "Minimal" versus "Standard" Versions ***

If you have got the "Minimal Version" then you will not find any "unit tests" or "extras". Otherwise, the unit tests are included in the version. They were run using the SimpleTest Testing Framework 1.0.1 which would be included with the test cases.

About the project

The main parts in the project:

src/ saydal.php - the main bootstrap for the application Controller/ MainController.php - the main control code for the application Library/ CLIFeedback.php - view handle for writing user feedback and error messages CSVFile.php - the object that represent the CSV file Model/ PayrollCalendarMonth.php - the object that represents the PayrollMonth View/ Help.php - a text file containing user help for the cli output

We also expect the Simpletest (simpletest_1.1.0) library for testing. This should be installed via specification in the project's composer.json file. Our TestRunner.php expects the Simpletest library to be at:

vendor/ - 3rd party libraries that are not shipped with the project. simpletest/ simpletest/ - Simplest testing libary current release: SimpleTest v1.1.0.

== Standard Version Only ==

Running Tests from the Command Line

First, create a config file that sets the include path to the main application folder, call it:

This info helps the TestRunner.php to set the base include path.

Then, point your command line interface to:

saydal\saydal\Tests\TestRunner.php

Then run:

php TestRunner.php

Some tests create files in 'TempData' directories. The files can be deleted but don't delete those directories.


All versions of example-php-cli-application with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package johnniewalker/example-php-cli-application contains the following files

Loading the files please wait ....