定制 laravel-enso/facebook 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laravel-enso/facebook

Composer 安装命令:

composer require laravel-enso/facebook

包简介

Facebook verification settings for Laravel Enso

README 文档

README

License Stable Downloads PHP Issues Merge Requests

Description

Facebook adds a small Enso integration layer for Facebook page and domain-verification settings.

The package stores a single settings record, exposes a settings form under the Integrations area, and supports environment-level overrides for the verification code and page ID. It also contains a manual upgrade class for removing legacy table columns when the integration moves to environment-based configuration.

It is a lightweight settings package rather than a full Facebook API client.

Installation

Install the package:

composer require laravel-enso/facebook

Run the package migrations:

php artisan migrate

Optional publish:

php artisan vendor:publish --tag=facebook-config

Default configuration:

return [
    'verificationCode' => env('FACEBOOK_VERIFICATION_CODE'),
    'pageId' => env('FACEBOOK_PAGE_ID'),
];

Environment configuration takes precedence over database values returned by the settings model.

Features

  • Settings record for page ID and verification-code management.
  • Settings endpoints under integrations.facebook.settings.
  • Config-based overrides for runtime access.
  • Manual upgrade helper for removing deprecated database columns.

Usage

Use the settings model to resolve current integration values:

use LaravelEnso\Facebook\Models\Settings;

$pageId = Settings::pageId();
$verificationCode = Settings::verificationCode();

When present, FACEBOOK_PAGE_ID and FACEBOOK_VERIFICATION_CODE override the persisted values.

API

HTTP routes

  • GET api/integrations/facebook/settings
  • PATCH api/integrations/facebook/settings/{settings}

Route names:

  • integrations.facebook.settings.index
  • integrations.facebook.settings.update

Upgrade helper

  • LaravelEnso\\Facebook\\Upgrades\\DeprecateFacebookTableColumns

Behavior:

  • runs manually
  • removes the legacy page_id and verification_code columns from facebook_settings

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

统计信息

  • 总下载量: 7.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固