Download the PHP package andrew13/cabinet without Composer

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

Cabinet - Laravel 4 File Upload Package

Cabinet is a file upload package for Laravel 4.

Cabinet Poster

Cabinet is a package that allows easy upload of files and images.

Features

Quick start

Required setup

In the require key of composer.json file add the following:

For use with Laravel 4.1.x

For use with Laravel 4.2.x

Run the Composer update command

In your config/app.php add 'Andrew13\Cabinet\CabinetServiceProvider' to the end of the $providers array

At the end of config/app.php add 'Cabinet' => 'Andrew13\Cabinet\CabinetFacade' to the $aliases array

Upload model

Now generate the Cabinet migration:

It will generate the <timestamp>_cabinet_setup_uploads_table.php migration. You may now run it with the artisan migrate command:

It will setup a table containing filename, directory_path, extension, user_id and deleted_at fields, which are the default fields needed for Cabinet use.

Create an upload model in app/models/Upload.php:

CabinetUpload class will take care of all the default upload behavior. This can be extended in your Upload model.

Dump the default assessors

Least, you can dump a default controller and the default routes for Cabinet.

Don't forget to dump composer autoload

Publish public assets

In order to use the js/css/images you'll need to publish the assets.

And you are ready to go. Access http://localhost/upload to upload a file. It is highly suggested to put some auth protection on the uploads.

Advanced

Using custom table / model name

To change the controller name when dumping the default controller template you can use the --name option.

Will result in UploaderController

Then, when dumping the routes, you should use the --controller option to match the existing controller.

Using custom form for upload and other configuration options.

First, publish the config files:

Then edit the view names in app/config/packages/andrewelkins/confide/config.php.

Further, you can change the location of the uploads, type of upload files, and many more options!

RESTful controller

If you want to generate a RESTful controller you can use the additional --restful or -r option.

Will result in a RESTful controller

Then, when dumping the routes, you should use the --restful option to match the existing controller.


License

This is free software distributed under the terms of the MIT license

Special Thanks

Generator code uses code from the Confide package. It is then modified to fit this application. Thanks goes out to @Zizaco for that code.

Workbench tutorial by Jason Lewis was excellent in getting up and running with workbench.

Image upload tutorial from Phil Sturgeon which inspired me to create this package.

Additional information

Any questions, feel free to contact me.


All versions of cabinet with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/auth Version 4.2.x
illuminate/database Version 4.2.x
illuminate/filesystem Version 4.2.x
illuminate/log Version 4.2.x
illuminate/support Version 4.2.x
illuminate/view Version 4.2.x
symfony/http-foundation Version 2.5.*
symfony/http-kernel Version 2.5.*
nesbot/carbon Version 1.*
bllim/datatables Version *
intervention/image Version 2.0.x
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 andrew13/cabinet contains the following files

Loading the files please wait ....