PHPackages                             nopolabs/yabot-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nopolabs/yabot-template

ActivePackage[Utility &amp; Helpers](/categories/utility)

nopolabs/yabot-template
=======================

Template for yabot projects.

09PHP

Since Nov 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nopolabs/yabot-template)[ Packagist](https://packagist.org/packages/nopolabs/yabot-template)[ RSS](/packages/nopolabs-yabot-template/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yabot-template
==============

[](#yabot-template)

Project template for building a slack bot using nopolabs/yabot

Getting Started
---------------

[](#getting-started)

You will need php 7.\* and [composer](https://getcomposer.org/download/).

- Use composer to create a new project based on yabot-template.
- Copy config.example.php to config.php
- Follow [Slack's instructions](https://get.slack.help/hc/en-us/articles/215770388) to get a slack token.
- Replace "SLACK-TOKEN-GOES-HERE" in config.php with your slack token.
- **Do not** check your slack token into a public source control repository.
    (Slack will revoke tokens it finds shared publically).
- Run Yabot: 'php yabot.php'

```
composer create-project --stability dev nopolabs/yabot-template my-bot
# allow composer to remove existing .git history
cd my-bot
# create your own git repository for your bot
cp config.example.php config.php
cp .env.example .env
vi .env
# replace SLACK-TOKEN-GOES-HERE with your slack token
php yabot.php
# ... profit
```

NOTE: yabot uses nopolabs repositories for slack-client and phpws because it depends on updates to coderstephen/slack-client and devristo/phpws that are not yet available from those packages.

Adding plugins
--------------

[](#adding-plugins)

Visit [yabot-plugins](https://github.com/nopolabs/yabot-plugins) to find a number of example plugins of varying complexity and utility. Here is how to add one of those plugins (GiphyPlugin) to this project.

- Use composer to require nopolabs/yabot-plugins
- Import plugin.giphy.yml in config/plugins.yml
- Start yabot

```
composer require nopolabs/yabot-plugins
vi config/plugins.yml
# add: "- { resource: '../vendor/nopolabs/yabot-plugins/config/plugin.giphy.yml' }" to the imports section.
php yabot.php
```

Writing your own plugins
------------------------

[](#writing-your-own-plugins)

yabot-template contains one plugin (HelloPlugin) as a placeholder to show where plugin source code, tests, and configuration go. Specifically:

- source code goes in the src/ directory
- tests go in the tests/ directory
- configuration goes in config/plugins.yml and config.php
- package namespaces for src/ and tests/ auto-loading are set in composer.json

Logging
-------

[](#logging)

Yabot uses [monolog](https://github.com/Seldaek/monolog) to write logs. By default logging is configured in config.php to go to logs/bot.log.

Setting `'log.file' => 'php://stdout'` can be useful during development to direct logging information to the terminal where you have started yabot.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/815864?v=4)[Dan Revel](/maintainers/nopolabs)[@nopolabs](https://github.com/nopolabs)

---

Top Contributors

[![nopolabs](https://avatars.githubusercontent.com/u/815864?v=4)](https://github.com/nopolabs "nopolabs (9 commits)")

### Embed Badge

![Health badge](/badges/nopolabs-yabot-template/health.svg)

```
[![Health](https://phpackages.com/badges/nopolabs-yabot-template/health.svg)](https://phpackages.com/packages/nopolabs-yabot-template)
```

###  Alternatives

[based/momentum-trail

Fully typed frontend route helper for Laravel apps

80399.9k](/packages/based-momentum-trail)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
