Download the PHP package kregel/formmodel without Composer

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

Config file

What this code does, is, if there is a relationship, but it will return the resolved relationship function's evaluation. So if you want to scope this down some, then be my guest.

Custom frameworks.

The next step is to change the way your framework interacts with the modelInput method. There is a new "base" framework impementation, which draws from something only some classes had which is the automatic relationship resolution. If you extend the Plain framework then you will be able to use this feature by default. Other wise you can keep doing what you're doing :)

If you need custom attributes on your form inputs like v-models (for vue) or some other javascript framework or you want to add custom classes, It's recommended that your framework only contain methods that relate to the inputs for that framework, and to not have them override the default modelInputs method

Oh crap! an update broke my App!! WHAT DO I DOOO!? FIX IT NOW!!

Please, before you raise a lynch mob on Twitter, use your brain and the wonderful human powers of deductive reasoning.

So, as of 2.0, there was a huge structure change with... Well, everything. I made the whole system a bit more modular and extensible. So instead of needing to create a new instance of your model AND FormModel, now you just need to new up a FormModel instance. Or... If you have our facade set up, you can use the facade.

downloads

What is this package?

This package was created to help decrease the time it takes to echo out a form relating to a given Model while still giving the developer the ultimate amount of flexibility .

What do I need to do to make it work?

To get it to work properly, similar to how it works in my Warden package, it's recommended to do the following

  1. composer require kregel/formmodel or add "kregel/formmodel":"^2.0" to your composer.json file, just be sure to use composer update with that statement, or if you haven't build your dependancies use composer install instead.

  2. Register the service provider with your config/app.php file

  3. (optional) Add the alias to your config/app.php file

  4. Publish the config file! This should be able to be done with php artisan vendor:publish
  5. Use your favorite way to new up a FormModel, this can be done using the Facade or by just doing

  6. Use something similar to the following in your controller, or in your view (maybe you injected it?)

  7. Print the results!

Do you have an example?

Duhh! Let it be known that this is a method in one of the controllers from my Warden package.

Extending

You can extend this system just like you would with my Menu Package. In the section in the config labeled 'custom-framework'. Modify the Namespacing of the newed up object to your class and it should just work (assuming you knew to use the structure of the class below)

Questions?

Email me (my email is on my github page), or you can drop an issue. :)


All versions of formmodel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/support Version >=5.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 kregel/formmodel contains the following files

Loading the files please wait ....