承接 adminarchitect/contacts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

adminarchitect/contacts

最新稳定版本:v1.0.1

Composer 安装命令:

composer require adminarchitect/contacts

包简介

Admin Architect - Contacts

README 文档

README

Note: The backend part of this package can be used only in conjunction with Admin Architect (terranet/administrator) package.

Installation

composer require adminarchitect/contacts

add service provider to config/app.php:

'providers' => [
    ...
    Terranet\Contacts\ServiceProvider::class
    ...
]
php artisan vendor:publish --provider="Terranet\\Contacts\\ServiceProvider"

Usage

$contacts = new Contacts('Google Inc.');
$contacts
    ->setDescription('<p>We’ve come a long way from the dorm room and the garage. </p>' .
        '<p>We moved into our headquarters in Mountain View, California—better known as the Googleplex—in 2004. </p>' .
        '<p>Today Google has more than 70 offices in more than 40 countries around the globe.</p>')
    ->setEmails(['info@google.com'])
    ->setPhones(['+1 734-332-6500', '+1 248-593-4000']);
    
$contacts->setAddress('1600 Amphitheatre Parkway Mountain View, CA 94043');

$contacts->department('Google Ann Arbor', function ($department) {
    $department->setDescription('Software development')
        ->setAddress('201 S. Division St. Suite 500 Ann Arbor, MI 48104')
        ->setPhones(['+1 734-332-6500'])
        ->setEmails(['support@google.com']);
});

$contacts->department('Google Detroit', function ($department) {
    $department->setDescription('Software development')
        ->setAddress('114 Willits Street Birmingham, MI 48009')
        ->setPhones(['+1 248-593-4000'])
        ->setEmails(['support@google.com']);
});

return $contacts->render();

Templates

Choose the template from one of predefined or create new one: config/contacts.php section template

Contact page - Default template

two columns

Contact page - Tow Columns template

Or in rows

Contact page - Tow Rows template

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-02-24