Download the PHP package millancore/lake without Composer

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

Build Status

Lake is a command line utility that allows you to dynamically create classes and methods and create your reflexes for testing, also Lake can add methods to existing classes.

One of the most powerful features of Lake is that it automatically adds "USE" statements, Lake can recognize internal PHP classes, project classes and those that are present as Composer dependencies.

Install

PHP 7.1 or newer

Configure

Lake takes to Composer the configuration of your project, he expects that the folder tests to store the reflections of test.

But not all projects have the same structure, if that's the case you can use the configuration file lake.yml and Config options.

Usage

In order for Lake to automatically add the USE statements from Composer's dependencies, you must run lake dump. If in the process of creation there is ambiguity in the name of the class or interface Lake will give you a choice from those available.

Only run once after installing some dependencies with Composer.

Create a class + method

If the name of the method is not defined, the defined arguments will be those of the constructor.

Options

Option Name Example Description
-e Extends -e Controller Define the class of the one that extends.
-a Arguments -a Int:id Method argument, you can use this option many times.
... ... -a Request If the name of the variable is not defined
Lake will create the variable name from the type.
... ... -a ?Array:params Nullable argument.
-r Return -r Response Defines the type of return.
-d DocBlock -d 'description' DocBlock Description of the method.

Examples

classFile: src/App/Command/CommandLake.php

testFile: test/App/Command/CommandLakeTest.php

Config options

Option Values Description
mode loose, strict By default the mode is loose, but a strict mode can be defined if you want to use TDD in the right way. The strict mode creates only the test files and in the code part create the files with a .lake extension.
src.dir src This is the folder where the code are, usually is src, but it can change.
src.namespace ... This is the base name defined in the composer's autoload.
test.dir tests This is the folder where the test are, usually is tests, but it can change.
test.extends ... The tests extend by default is PHPUnit\Framework\TestCase, but you can define another class.

All versions of lake with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
symfony/console Version ^4.4
symfony/filesystem Version ^4.4
symfony/process Version ^4.4
laminas/laminas-code Version ^3.4
symfony/yaml Version ^4.4
symfony/options-resolver Version ^4.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 millancore/lake contains the following files

Loading the files please wait ....