Download the PHP
package johnson/yii2-webcam without Composer
On this page you can find all versions of the php package
johnson/yii2-webcam. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor johnson Package yii2-webcam Short Description Capture and upload the image through system / Mobile web cam basic html5 native features. License
MIT
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 yii2-webcam
Yii 2 - Web cam input
Capture and upload the image through system / Mobile web cam basic html5 native features. The current release only captures the image from webcam and shows the image in a div. If the desktop does not has webcam obviously can't use this extension any more.. LOL.
Note:
In the localhost chrome browser may not work due to https restrictions. When it goes to production the web app must be in https to work at all platforms.
You may test the functionality at FireFox browser.
Installation
The preferred way to install this extension is through composer.
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \Johnson\JayWebcam::widget(); ?>
If you pass the ID of the input element then the base64 encoded image data will be stored in the "value" attribute of the element after taking the snapshot.
If you want to show the thumbnail to the users then you can give the "imgID" property i.e the tag id attribute value. Then the widget will assign the base64 encoded image into the element.
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 johnson/yii2-webcam contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.