produpress/laravel-actito

Laravel 版 Actito

0.5.1 2023-08-03 14:46 UTC

README

这是一个用于与Laravel 框架交互的Actito API的包。

正在积极开发中

当前支持

安装

您可以通过 composer 安装此包

composer require produpress/laravel-actito

配置

环境变量

ACTITO_URI=https://api3.actito.com/
ACTITO_KEY=0123456789abcdf0123456789abcdef
ACTITO_ENTITY=DefaultEntity
ACTITO_TABLE=1

您还可以使用以下命令发布配置文件

php artisan actito:install

用法

数据

//Get a specific profile by Id from the default table (see config)
Actito::profile()->get(123);

//Get a profile from another table and entity.
Actito::profile(8)->entity('AnotherEntity')->get(456);

//Create or update a profile and get the profile Id
$profileId = Actito::profile()->save($profileData);

数据模型

//Get list of profile tables
Actito::profile()->tables();

//Get the schema of a profile table with the profile table id
Actito::profile(8)->schema();

//Get list of custom tables
Actito::customTable()->tables();

//Get the schema of a custom table witht he custome table id
Actito::customTable('109675e9-429e-954d-a50f-9e806d70a6ca')->schema();

更多请参考文档

变更日志

请参阅CHANGELOG以获取最近更改的更多信息。

贡献

请参阅CONTRIBUTING以获取详细信息。

安全漏洞

请查看我们如何报告安全漏洞的安全策略

致谢

谢谢

在以下帮助之下

许可

MIT 许可协议(MIT)。有关更多信息,请参阅许可文件