Download the PHP package cvuorinen/raspicam-php without Composer

On this page you can find all versions of the php package cvuorinen/raspicam-php. 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 raspicam-php

Raspicam PHP

Build Status

Raspicam PHP is a library to control the Raspberry Pi Camera Module with PHP. It is a wrapper around the command line tool raspistill.

Requirements

You need a Raspberry Pi running Raspbian and the Camera Module. On the Raspberry Pi you also need to have PHP and composer installed.

First, install and enable the Camera on the Raspberry Pi: Instructions

If you don't have PHP installed on the Raspberry Pi yet, you can install it by running:

Then install composer:

Install

First check requirements above.

Install with composer:

Add to your php file (adjust path accordingly if file not in project root):

Usage

Take picture

Fluent interface

Constructor options array

Timelapse

More complex examples can be found in the examples directory.

Documentation

Documentation can be found in the the docs directory.

Troubleshooting

Since Raspicam PHP is just a wrapper around raspistill, you should first make sure that it works without issues. This can be done by calling it directly, for example creating a PHP script with just passthru("raspistill -o /tmp/test.jpg"); and calling it the same way as the script that uses Raspicam PHP.

Depending on how you are going to execute your PHP code, you might have to adjust some permissions. The executing user needs access to /dev/vchiq on the Pi. If you are executing from command-line as the default user, it should just work.

If you are executing through a web server like Apache, you need to adjust the permissions so that the web server user (www-data in case of Apache) has permission to access it by adding the user to the group video (with e.g. sudo usermod -a -G video www-data).

Also make sure that the user has permission to write to the file/directory where you are saving the images. The filename is relative to PHP current working directory, but absolute paths can also be used.

License

Released under the MIT License (MIT). See LICENSE for more information.


All versions of raspicam-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
adambrett/shell-wrapper Version ~0.5
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 cvuorinen/raspicam-php contains the following files

Loading the files please wait ....