Download the PHP package lukaskorl/apigen without Composer

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

API Generator for Laravel 4

APIgen scaffolds restful APIs for you. If you choose to APIgen also sets you up with an administration interface.

Be aware: APIgen is currently under heavy development. I strongly advise against using the current version of APIgen in a production environment. I'm working on getting APIgen to a stable release as soon as possible.

Installation

composer require lukaskorl/apigen
php artisan apigen:publish

Recommended steps after installation

Add the apigen:publish command to the post-*-cmd scripts of your project's composer.json like so:

"scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize",
        "php artisan apigen:publish"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize",
        "php artisan apigen:publish"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},

Usage

Note on namespace

By default APIgen uses the namespace Api. You need to register this namespace for autoloading in your composer.json file if you don't use your own namespace. To register the Api namespace merge this snippet into your composer.json file:

{
    "autoload": {
        "psr-4": {
            "Api\\": "app/Api"
        }
    }
}

Generating a resources

When generating a resource APIgen will generate for you:

To create a new resource simply run an Artisan command:

php artisan apigen:resource dog --fields="name:string, age:integer"

Optionally you can specify a namespace by adding the --namespace option:

php artisan apigen:resource dog --fields="name:string, age:integer" --namespace="Zoo\Animals"

There are switches to skip some generators:

Generating a repository

When generating a repository APIgen will generate for you:

Generating a model

APIgen can generate will generate an Eloquent model for you.

Setting up an administration backend

APIgen ships out of the box with support for FrozenNode/Laravel-Administrator. However APIgen uses a more advanced fork lukaskorl/administrator.

Contributions

Making changes to JavaScript & CSS

JavaScript and CSS files are pre-compiled using gulp. If you make changes to the source you will need to recompile them. The gulp tasks are all set-up. Make sure you have gulp and bower.io installed.

npm install -g bower
bower install

npm install gulp -g
npm install gulp gulp-util --save-dev
gem install sass
npm install gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-notify gulp-rename gulp-cache gulp-concat gulp-coffee gulp-plumber gulp-uglify --save-dev

If you have the necessary software installed execute the gulp tasks to build the JS & CSS

gulp build

All versions of apigen with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.2.*
way/generators Version 2.*
lukaskorl/administrator Version 4.11.2.*
lukaskorl/repository Version 0.*
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 lukaskorl/apigen contains the following files

Loading the files please wait ...