Download the PHP package syhcode/field-note without Composer

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

介绍

一个基于laravel,方便数据库字段类型说明的拓展

用法

使用composer导入包。

在 Laravel 5.5 或以上,服务提供商将自动获得注册。 在旧版本的框架中,只需在 config/app.php 文件中添加服务提供者即可。

发布迁移。

创建表字段说明表。

在model使用use引用NoteTrait,可添加 $note_fields 为默认预加载的类型说明的字段。

使用 note() ,传参只会预加载参数里面包含的字段说明,不传参自动预加载 model 里面 $note_fields 的字段说明。

可以通过字段名加 env 配置项 FILED_NOTE_SUFFIX 获取字段说明,FILED_NOTE_SUFFIX 默认为 Notetype字段默认为 typeNote

获取 model所有的字段说明。

获取字段的所有说明。

获取字段的某个值对应说明。

检查字段某个值是否有对应说明,可用在表单验证。


All versions of field-note with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 syhcode/field-note contains the following files

Loading the files please wait ....