Download the PHP package pixelbrackets/has_yet without Composer

On this page you can find all versions of the php package pixelbrackets/has_yet. 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 has_yet

Has … yet?

Packagist Twitter

Has something happend yet? This is a small script to set up one of those Twitter bot accounts which automatically tweet answers to important questions like:

Example twitter bot using this repository:

Requirements

Usage

The PHP script should be executed with a cronjob. It then reads a JSON file consisting of default messages and messages for special dates. One message is selected and then pushed to a given Twitter account.

It is possible set up multiple accounts.

Installation

Set up the script

  1. Use composer to install the script and all dependencies
    • composer create-project pixelbrackets/has_yet
  2. Copy the configuration example file and rename it to configuration.json
    • The example configuration should be self-explaining, you may define custom messages for special days and/or one or more default messages
    • A status message may consist of a text and an image
    • The optional image may be a local filename or a URL (http/https supported)
  3. Protect the whole folder from public access (eg. with a htaccess file or move the directory outside of the document root)!

Set up a Twitter account

  1. Register a Twitter account (that was obvious, wasn't it?)
  2. Register an app for this account
    • The advantage of this move is that you won't need to set up an OAuth Login, since Twitter offers to generate an Access Token for the own account
  3. Go to https://apps.twitter.com/ to create/register the Twitter App
  4. Click “Create New App” Button
  5. Create an application (Name, Description, Website etc.)
  6. Change “Permissions” to “Read & Write”
  7. Generate an Access Token on the “Keys and Access Tokens” tab
  8. Copy API Key, API Secret, Access Token, Access Token Secret into the configuration file

Set up a cronjob

  1. Set up a cronjob which points to the cron.php file
    • eg. 0 10 * * * php /path/to/cron.php
    • You may choose any interval, but be aware that Twitter has a mechanism to detect duplicate tweets (https://twittercommunity.com/t/duplicate-tweets/13264). Consider this if you want to frequently post the same status message. It appears that a 24 hour time range is sufficient.
  2. If you want to set up multiple accounts or use varying messages, then rename the JSON configuration file and pass the filename as argument
    • eg. johndoe.json and php /path/to/cron.php johndoe

Source

https://github.com/pixelbrackets/has_yet/

Documentation

Read online (HTML) https://github.com/pixelbrackets/has_yet/blob/master/README.md

License

GNU General Public License version 2 or later

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.

Author

Dan Untenzu (@pixelbrackets)

Changelog

See ./CHANGELOG.md

Contribution

This script is Open Source, so please use, patch, extend or fork it.


All versions of has_yet with dependencies

PHP Build Version
Package Version
Requires jublonet/codebird-php Version ^2.6.0
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 pixelbrackets/has_yet contains the following files

Loading the files please wait ....