Download the PHP package naowas/raindrops without Composer

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

(Work in Progress)

Installation

  1. Inside your project root, run

    composer require rashidul/raindrops=dev-master

  2. Add this to your app.php config file's providers array

    Rashidul\RainDrops\RainDropsServiceProvider::class,

  3. Optionally, you can add this to aliases array for simplicity

    'FormBuilder' => Rashidul\RainDrops\Facades\FormBuilder::class,

  4. Finally, publish the config files.

    php artisan vendor:publish --provider=Rashidul\RainDrops\RainDropsServiceProvider

Generating Form

To generate a form for a model, you first need to add a $fields public property to your model and populate it with required informations.

Then you can generate the form markup by simply calling the build method on FormBuilder providing an instance of your model

Example:

In your controller:

don't forget to use the FormBuilder class at the top of your model

Then in your view, you can do:

That's it!

Form Configuration

There are some helpful methods to further customize the form.

Index Page

For index page, we'll use datatable jQuery plugin. First include the necessary js/css files for the datatable plugin.

Generating table markup/scripts

In the view file:

Handling backend

CRUD Generator

Our model will have a array property called $fields which will hold all the information we need to generate forms/list pages/filter options etc. later on.

$fields array will contain the model's database fields as key and another configuration array as value.

Options

These two fields are required to generate a generic form input element. Below options can be used for further customization of the field.

The following options are required based on the value of type

Example

Model Configuration

There's some additional properties we need to specify in our model.


All versions of raindrops with dependencies

PHP Build Version
Package Version
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 naowas/raindrops contains the following files

Loading the files please wait ....