Download the PHP package 1337m/lemming without Composer

On this page you can find all versions of the php package 1337m/lemming. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lemming

Lemming

Discord bot, for custom needs.

Features

Coming soon

On our mind

Installation

This application is developed in PHP. Not the proudest moment of our lives, but why not?

Going with trends, we're using composer, to manage our dependencies, scripts and configuration.

In order to install the application and be able to use it, you will require few things:

If you meet the requirements above, you're almost done!

First, you may want to clone this repository.

Note, we've added an extra parameter --depth=1, which is totally optional. It simply tells github: Yeah, I want that! But I dont't really care for the history of this software... Just get me what I want.

Once you succeed to clone the repository, you may enter the directory. Typically, it would be:

Inside the directory, you may find a lot of useless stuff. You probably don't need to know what's going on in here... However, if you do, you're awesome and be sure, to visit the Contributing section of this README file.

You will need, to give the bot some information, so it knows how to human. Pretend at least.

The application, expects you to store your information in the .env file. It's the easiest solution, to have a desired setup on different environments.

Our .env file, looks like this:

Most important are:

Once you have configured the environment variables to meet your needs, install the dependencies with composer.

We're done now. That was easy, right?

Why don't you go ahead and run the application?

TL;DR

Lazy? You... I like you. Here:

Commands

This list, shall grow in time...

Testing

We love TDD. Testing is love. We use this great php tool, called phpunit to configure our tests.

These are mostly ready, so you can have a look at running the command below:

Contributing

You're amazing. We like amazing. The idea of Open Source, is to make things better, by using different/fresh set of eyes. If you:

Please, feel free to do so! But to make everybody's life easier, we'd like you to follow some path.

  1. Create/Comment an issue - Would be nice, to know what's going on. Perhaps, it'd help by stopping one of us to work on the same issue?

  2. Fork out - Make your own copy of the repository. You may not necessarily have a write permission for this one...

  3. Run the tests before you start coding! - Make sure, it wasn't you, who broke something in the code. Run the tests, if everything is in order, continue.

  4. Make your own tests - It's a good idea, to follow TDD pattern. Write a test, make sure it fails, then fix the code to make the test success. Either way, Make some tests :D

  5. Be amazing. Be great. Be yourself. Be a developer. - Code your way to the top.

  6. Create a Pull Request - We'll make sure, to review your code. Give you feedback, ask questions or discuss solutions. Don't be offended! Feel privileged. We're all here to learn. We may learn something from you, which we hope for, and you may learn something from us, which would make us very happy. Feel free, to disagree with something, but try to reason the disagreement.

  7. Have a cookie! - Every work deserves a reward. Although, we'd love to give you cookie, you may need to sort this on your own. Internet is great, but it has some limitations.

Plugins

Lemming has a nice and easy support for plugins, using composer!

Installing plugins

Well, it's very simple! For the sake of documentation, I'll be referencing one of our official plugins Lemming Giphy.

By default, the installation is only one command! Check it out:

The plugin should be installed in it's latest version. Now it's time to reference it! You should be having a config/commands.php file. Open it up, and somewhere in the middle of an array, add new key (command to be recorded) and array of options including required action. After all, it should look something like this:

Sometimes, the plugin developers may give you instructions on how to do so. These are amazing developers. The plugin above, has a nice README file associated, explaining the steps you may need to take, in order to make the plugin work. Be sure to check it out!

Developing plugins

If you know at least basics of PHP, you know how to write plugin for Lemming...

We have created a little abstract class, you may need to use.

Here, have a nice starting point for your app:

Now if you reference this, in your bot:

you will be able, to write /awesome in the chat and expect the bot to reply!

Bit of technicality:

Base class, provides both $message and $params variables.

The above class, could look like this:

Reference the new command:

And test out with the discord client:

Licence

Lemming is open-sourced software licensed under the MIT license.


All versions of lemming with dependencies

PHP Build Version
Package Version
Requires doctrine/orm Version ^2.5
league/event Version ^2.1
team-reflex/discord-php Version ^4.0
vlucas/phpdotenv Version ^2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package 1337m/lemming contains the following files

Loading the files please wait ....