Download the PHP package sjones6/siege-li without Composer

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

SiegeLI

This package allows for editing of stub templates, stub groups (to switch in and out of stub templates), and generating resourceful stubs (i.e., route, controller, model, views, model factory, migration, seeder, and test) with one command.

The center of SiegeLi is the resource and the mvc command. It generates all the boilerplate for resourceful interaction (CRUD) and persisting that resource to your database.

Requires Laravel 5.

Installation

Require the package into your project.

Add the service provider to your providers array in config/app.php:

Publish the package: artisan vendor:publish. This will add a stubs directory to your resources directory, and a configuration file called stubs.php in your config directory.

SiegeLi will work even if you don't publish the package. However, you will not be able to customize templates or configure the package for your project. But if you need to get up and running quickly on a standard Laravel install, you can skip this step.

Configuration

If you're using a standard Laravel 5.3 file structure, SiegeLi should work out of the box. However, if anything is non-standard or you're using an older version of Laravel, edit the config/stubs.php to reflect this. Specifically, you may need to indicate the path to your controllers or routes file.

Usage

Commands

For the resource name, it is best to use snake_case or spinal-case. The name will be converted to accepted standards (e.g., model name in StudlyCase).

Command options

For each of the above commands, you can also pass the following optional parameters:

Stub Templates

When you publish the package, you will have a stubs folder in your resources directory. You can edit these at will.

Stub Syntax

Stubs use a simple syntax for populating variables and include/excluding template blocks.

Stub Variables

Variables are wrapped in double curly braces, without spaces, and without dollar sign.

The following stub variables are available for use in any template:

Stub Blocks

Stub template blocks are between <<<block-name and >>>. Blocks can be included or excluded conditionally using -o|--option parameter. For instance, running a stub command with -o siege on the following would include all siege blocks and exclude all !siege blocks:

You can also pass the -a|--all option to include all optional template blocks.

Stub Groups

Groups provide a convenient way switch between stub templates given the needs of your project or individual preferences.

Generate a stub group with the command artisan siege:group {group_name}. For example, artisan siege:group test will create a directory resources/stubs/test populated with stubs. If you want to use another group as the base for this new stub group, add the -f|--from option.

You then will need to add the stub group to config/stubs.php file.

Now you can use the name test-group to access all of the stubs in the test directory.

You can set a default template group in config/stubs.php or indicate which group by passing a group name with the -g|--group option, like so:


All versions of siege-li with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version ^5.0
nesbot/carbon Version ^1.21
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 sjones6/siege-li contains the following files

Loading the files please wait ...