Download the PHP package ivybridge/model-mgr without Composer

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

ModelMgr

ModelMgr

Model manager (ModelMgr) is a tool for Phalcon (at this moment). It generates models from a certain schemas. It can update their properties only, remove the suffixes of models, etc.

This application was developed by Brayan Iribe. It was made in order to reduce the hassle of type every table and model name in the command line.

This tool requires Phalcon Devtools in order to work.

Only works with MySQL

¿Español? Desliza hacia abajo.

INSTALLATION

In bash run:

COMMANDS

ModelMgr

If I have a table with the suffix for example: sat_impuestos, where sat is the suffix, ModelMgr can or not keep it.

If I don't use the argument --keep-suffix=sat, the suffix will be deleted and the final model will be called Impuestos.

You can update only one model by passing its table name to ModelMgr, for example:

By doing this, if the model exists in the project and the table name is correct, the model will be updated only. The namespace is not required in this case, because you have provided the model already.

If you don't provide a model to update, all existant models will be updated, and the non-existant will be created.

ModelMgr

GREEN: You can put whatever you want in those lines, ModelMgr can handle it and if the model is updated, it will keep it.

RED: You CANNOT put comments, functions or newlines in that block. ModelMgr cannot handle it and will result in broken model.

YELLOW: You can put whatever you want, as long as you don't use ModelMgr code injection. If you do so, the model can likely result broken with duplicated code.

ModelMgr cannot detect if you added a comment, functions or new lines in the model props. Please dont do so. Keep the model as Phalcon generates it originally. If you add them, the model will likely result broken. You can comment an do whatever you want in the functions.

ModelMgr will use the database settings of config.php

At this moment, ModelMgr works only for Phalcon Project. However, I'm interested porting it to other frameworks, like Laravel.

Español

Model manager (ModelMgr) es una herramienta desarrollada para Phalcon. Genera modelos a partir de esquemas, puede actualizar las propiedades de los modelos solamente (conservando sus funciones originales), remover sufijos de tablas, etcétera.

Esta aplicación fue desarrollada por Brayan Iribe con el fin de reducir las molestias de escribir en la línea de comandos modelo por modelo y actualizar su contenido uno por uno.

Esta herramienta requiere de las Phalcon Devtools para funcionar.

Solo trabaja con MySQL

INSTALACIÓN

En tu proyecto de Phalcon ejecuta:

COMANDOS

ModelMgr

Si tengo una tabla con un sufijo por ejemplo: sat_impuestos, donde sat es el sufijo, ModelMgr puede o no conservar el mismo.

Si no se utiliza el comando --keep-sufix=sat, el sufijo se eliminará y el modelo terminará llamandose Impuestos.

Puedes actualizar las propiedades de un modelo simplemente pasando su nombre a ModelMgr, por ejemplo:

Al hacer esto, si el modelo existe en el proyecto y el nombre de la tabla es el correcto, se actualizará solamente dicho modelo. No es necesario pasar el namespace, ya que al tratarse de un solo modelo, se obtiene el namespace del mismo.

Si no se proporciona un modelo a actualizar, entonces se crearán aquellos modelos que no existan en el momento, y se actualizarán aquellos que si existan.

ModelMgr

VERDE: Puedes poner lo que quieras en esas líneas, ModelMgr puede controlarlo. Si el modelo es actualizado, lo mantendrá ahí mismo.

ROJO: NO PUEDES poner comentarios, funciones o nuevas líneas en ese bloque. ModelMgr no podrá controlarlo y devolverá un modelo probablemente roto.

AMARILLO: Puedes poner lo que quieras, siempre y cuando no utilices la inyección de código de ModelMgr. Si lo haces, el modelo puede resultar roto o con código duplicado.

ModelMgr no puede detectar que agregaste un comentario, funciones o nuevas líneas en las propiedades del modelo. Mantén el modelo como Phalcon lo genera originalmente. Si haces esto, el modelo puede terminar probablemente roto.

En este momento, ModelMgr solo funciona para proyectos Phalcon. Sin embargo, estoy interesado en poder portar esta herramienta a otros frameworks, como Laravel.


All versions of model-mgr with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5 < 7.3.2 || >7.3.3
ext-phalcon Version ~3.3
phalcon/devtools Version >=3.4
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 ivybridge/model-mgr contains the following files

Loading the files please wait ....