承接 scribble/scribble 相关项目开发

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

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

scribble/scribble

Composer 安装命令:

composer require scribble/scribble

包简介

Publish your blog posts across multiple blogging platforms and sites

README 文档

README

Scribble is a library that will connect you and all your blogs in a simple, clean and universal way. With Scribble you can publish your blog posts across multiple blogging platforms, forums and sites.

#When does Scribble come in handy? Let's say you're an author and you maintain several blogs (a personal blog, one for the book series you author and the publishers blog) if you planned on a book signing tour and you wanted to update all your readers across all three blogs to your progress without having to post three times across the blogs then Scribble could be your savior, doing all the work and publishing your posts automatically across all your sites.

###Get Scribble Install with composer,

composer require scribble/scribble

Once installed you will need to get the bridge for the blogging platforms that you want to use, Wordpress, phpBB and Anchor are supported.

####Wordpress Bridge Download the Scribble Bridge plugin for Wordpress and copy it to your Wordpress plugin directory, activate it and you are good to go! Scribble will now be able to interface with your Wordpress site.

####phpBB Bridge Download the Scribble Bridge plugin for phpBB and drop it into your forum's root directory, and that's it.

####Anchor Bridge Download the Anchor Bridge plugin for Anchor and follow the instructions in the README.

###Setting up Scribble Rename your Scribble/Config/config.example.php file to config.php, here's an example of the config file set up to work with a Wordpress blog and a phpBB forum.

return [

    "Providers" => [
        
        [
        
            "name"              => "Wordpress",
            "active"            => true,
            "nickname"          => "myphpblog",
            "url"               => "http://myphpblog.com/blog",
            "username"          => "user",
            "password"          => "pass",
            "provider_class"    => "Wordpress"
        
        ],
        
        [
        
            "name"              => "phpBB",
            "active"            => true,
            "nickname"          => "myforum",
            "url"               => "http://myforum.net/phpBB",
            "username"          => "user",
            "password"          => "pass",
            "default_forum_id"  => 2,
            "provider_class"    => "PhpBB"
        
        ],
        
        [
            
            "name"              => "Anchor",
            "active"            => true,
            "nickname"          => "myanchorblog",
            "url"               => "http://myanchorblog.org",
            "username"          => "user",
            "password"          => "pass",
            "default_cat_id"    => "1",
            "provider_class"    => "Anchor"
        
        ]
    
    ],
    
    "Groups" => [
    
        "ExampleGroup" => [
        
            "myphpblog",
            "myforum"
            
        ]
        
    ]

]

Make sure the nickname is unique to each entry.

###Making your first post

use Scribble\Publisher;
Publisher::all()->create(
    [
        "post_title"    => "Hi Mum",
        "post_content"  => "I'm posting all over the place now!
    ]);

###Other examples of what Scribble can do #####Publish only to certain providers

use Scribble\Publisher;
Publisher::only(["myphpblog", "myforum"])->create(
    [
        "post_title"    => "Hello World",
        "post_content"  => "I'm posting all over the place now!
    ]);

The "only" method accepts an array of the nicknames of the blogs you want to use, nicknames are set in the Config/config.php file

#####Publish to a group of providers

use Scribble\Publisher;
Publisher::group(["ExampleGroup"])->create(
    [
        "post_title"    => "Hello World",
        "post_content"  => "I'm posting all over the place now!
    ]);

The "group" method accepts a group name set in the Config.php file, this will load up a playlist of providers conventiently grouped together under one name.

#####Change config settings at runtime

use Scribble\Publisher;
Publisher::config("myforum", ["default_forum_id" => 4])->only(["myforum"])->create(
    [
        "post_title"    => "Hello World",
        "post_content"  => "I'm posting all over the place now!
    ]);

The "config" method allows for changes in the settings during runtime for example when publishing to a phpBB forum you may wish to change the destination forum id from the default setting, above is an example of this. "config" accepts two parameters first, the nickname of the provider found in the Scribble Config/config.php file and second, an array of config settings to be used, the existing ones in the config.php file will be overwritten with these new values.

scribble/scribble 适用场景与选型建议

scribble/scribble 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.42k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 04 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 scribble/scribble 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 scribble/scribble 我们能提供哪些服务?
定制开发 / 二次开发

基于 scribble/scribble 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-06