Coder Social home page Coder Social logo

phutler's Introduction

Phutler

Phutler could be your Butler written in PHP. Think of it as your helper that runs in the background and does everything you can implement in PHP. The basic principle is that phutler provides a number of data-sources which can be used to gather data, and it provides a number of actions that can be executed. A Task uses data from the data-sources and triggers actions.

Phutler is based on the excellent https://github.com/reactphp/react (node for php), so you get all the benefits of reactphp for free.

Data-Sources

Data-sources provide data that tasks can work with. Example Data-sources would be data from an url, ping data (if a computer is pingable), etc. Whatever you can imagine as useful data-source can be implemented.

Actions

Actions implement what a Phutler based butler can do. These could for example be: Send an Email, Tweet Something, Speak some text via Text2Speech, etc.

Tasks

Tasks combine the data from some data-sources and execute any given actions depending on the data they get from the data-sources. A Phutler instance can execute many tasks at once.

How to use

To use Phutler you should get the code, implement some Tasks, create a phutler.json config file and then run phutler using phutler phutler.json.

Note: Phutler is not a website, it is run as a daemon in the background. Nevertheless it has a small web interface to check its status.

Want to join development?

Build Status

If you want to implement additonal data-sources, actions or task that are usable in generic way don't hesitate to fork the repository and submit a pull request. Please also add unit-tests to your newly created classes.

To run the tests install phpunit with composer update --dev add your tests into the tests/ directory and then launch vendor/bin/phpunit

phutler's People

Contributors

shyru avatar

Stargazers

Tilo Baller avatar

Watchers

 avatar

phutler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.