Download the PHP package free2one/php-accessor without Composer

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

PHP Accessor

生成类访问器(Getter & Setter)

快速入门

安装

项目composer.json 文件中配置以下信息

将相应的注释添加到需要生成访问器的类中:

运行命令生成代理类

注解说明

#[Data]

用于PHP Accessor识别是否需要生成访问器。

配置项

namingConvention: 访问器命名约定,支持以下类别

accessorType: 需要生成的访问器类型

prefixConvention: 访问器前缀约定,支持以下类别

示例

#[Overlook]

设置后该类字段将不生成访问器。

示例

#[DefaultNull]

设置后调用相应的Getter方法时,若属性未进行初始化,将返回null。

示例

要点说明

如何使用生成的代理类

如果你的项目使用的是Hyperf框架,则可直接引入Hyperf PHP Accessor包。其他情况下,请参考以下示例。

待生成访问器的类Entity

执行文件示例

相关资源

PHP Accessor: 访问器生成器

PHP Accessor IDEA Plugin: Phpstorm插件,文件保存时自动生成访问器.支持访问器的跳转,代码提示,查找及类字段重构等.

Hyperf PHP Accessor: Hyperf框架SDK

Laravel PHP Accessor: Laravel框架SDK


All versions of php-accessor with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
nikic/php-parser Version ^4.15
symfony/console Version ^5.4 || ^6.0
symfony/finder Version ^5.4 || ^6.0
symfony/filesystem Version ^5.4 || ^6.0
phpstan/phpdoc-parser Version ^1.20
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 free2one/php-accessor contains the following files

Loading the files please wait ....