Download the PHP package yarcode/yii2-app-yarcode without Composer

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

Yii 2 YarCode Project Template

Build Status

Yii 2 YarCode Project - is a skeleton Yii 2 application.

Differences from yii2-app-advanced

In contrast to the yii2-app-advanced this template out of the box has:

Requirements

The minimum requirement by this project template that your Web server supports PHP 7+.

Installation

Install composer.

You can then install this project template using the following command:

Copy .env file

Configure .env and apply migrations. Make sure that you are properly configured to connect to the database.

The template installation is now complete.

Quality Control

Travis CI

To automatically build and test the application in a template, use Travis CI. The configuration is located in the file .travis.yml in the project's root directory.

In the configuration file added PHP Coding Standards Fixer.

PHP Coding Standards Fixer

This tool allows us to automatically check the project code for compliance with standards and rules.

The configuration is in the file .php_cs in the project's root directory.

Execute the command to verify the code for compliance with the PSR-2 standard

Vrutalization

This template supports Docker technology

Base usage

Build your containers

Create volume

Init and apply migration:

Start the containers:

Now app must be working:

You can also start the services individually. Example, start only backend:

Test environment

Tests are in the test catalogs {application}/tests. They are developed with Codeception PHP Testing Framework. By default there are 2 test suites for each applications(api, frontend, backend):

For more information about testing Yii2 applications, read here

To run tests in a container can be used docker-compose.test.yml file. Follow these three simple steps:

  1. Create test volume: docker volume create --name=test_postgres_data
  2. Apply migration for test database: docker-compose -f docker-compose.test.yml run --rm yii_test migrate
  3. Run all the tests that are in the template: docker-compose -f docker-compose.test.yml run --rm codeception run

It is possible to run only unit or only functional tests for the application, for example

Also you can run some specific test by specifying the path to it

For debugging, it can be convenient to run tests with the flags -f and--debug

Template structure

The root directory contains the following subdirectories and files:


All versions of yii2-app-yarcode with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
yiisoft/yii2 Version ~2.0.12
yiisoft/yii2-bootstrap Version ~2.0.0
yiisoft/yii2-swiftmailer Version ~2.0.0
yarcode/yii2-tools-yarcode Version ^1
yarcode/yii2-fa Version ^1.0
kartik-v/yii2-widget-alert Version ^1.1
kartik-v/yii2-widget-growl Version ^1.1
dmstr/yii2-adminlte-asset Version 2.*
vlucas/phpdotenv Version ^2.4
friendsofphp/php-cs-fixer Version ^2.4
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 yarcode/yii2-app-yarcode contains the following files

Loading the files please wait ....