定制 epicsweb/php-opportunities 二次开发

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

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

epicsweb/php-opportunities

Composer 安装命令:

composer require epicsweb/php-opportunities

包简介

README 文档

README

This library allows opportunities to be sent internally for Code Igniter 3.x and Laravel

Installation

Use the composer to install this library

composer require epicsweb/php-opportunities

Configuration

CodeIgniter

Create or edit a file in your code igniter application folder and set this vars: /application/config/epicsweb.php

<?php if( !defined('BASEPATH')) exit('No direct script access allowed');

$config['op_url']       = 'YOUR_BASE_URL_API';
$config['op_token']     = 'YOUR_SECRET_TOKEN';

Laravel

Set in your .env file

OP_URL=YOUR_BASE_URL_API;
OP_TOKEN=YOUR_SECRET_TOKEN;

Usage

CodeIgniter

Change file /application/config/config.php:

$config['composer_autoload'] = FALSE;
↓
$config['composer_autoload'] = realpath(APPPATH . '../vendor/autoload.php');

CodeIgniter & Laravel

Import the vendor library Epicsweb\PhpOpportnities and call the function

Add new opportunity

$data = [
    'account_id'            => (array)   [1,2,3],             // req | int | Conta EPICS ID
    'name'                  => (string)  'Lead Name',         // req
    'email'                 => (string)  'Lead Email',        // req email or telephone
    'phone'                 => (string)  '55 17 99999-8888',  // req email or telephone
    'message'               => (string)  'Text or Html',      // opt
    'date_initial'          => (date)    'Y-m-d'              // opt
];

$opportunity = new Epicsweb\PhpOpportunities;
$opportunity->send_opportunity( $data, 'post' ); //ALLOW "put" && "get"

Array Data Label

req => 'required value'

* dont use html_entities, urlencode, json_encode, and other in the array key or values

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固