PHPackages                             cekurte/twitter-like - 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. cekurte/twitter-like

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

cekurte/twitter-like
====================

Twitter like message application

v1.0.0(10y ago)213MITPHPPHP &gt;=5.6

Since May 19Pushed 10y agoCompare

[ Source](https://github.com/jpcercal/twitter-like)[ Packagist](https://packagist.org/packages/cekurte/twitter-like)[ RSS](/packages/cekurte-twitter-like/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (19)Versions (3)Used By (0)

TwitterLike
===========

[](#twitterlike)

[![Build Status](https://camo.githubusercontent.com/bddfc47c66f5c39af84e0bdc2c983425fac9d06d73e09c7b0c01910760aedf79/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a7063657263616c2f747769747465722d6c696b652f6d61737465722e7376673f7374796c653d737175617265)](http://travis-ci.org/jpcercal/twitter-like)[![Code Climate](https://camo.githubusercontent.com/82d744049db7b30ae556f94ddb341f679cf009c58514ee61763ffe1033e870a5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a7063657263616c2f747769747465722d6c696b652f6261646765732f6770612e737667)](https://codeclimate.com/github/jpcercal/twitter-like)[![Coverage Status](https://camo.githubusercontent.com/470cfe1d5ddae2fd98122998935941e66180524209bcbfac500bd46775a5c507/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a7063657263616c2f747769747465722d6c696b652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/jpcercal/twitter-like?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/886ebaf81faacf7f4e403deb19a02c728f1d7def931b4bdc8f2b6db64fa984de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656b757274652f747769747465722d6c696b652e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/twitter-like)[![License](https://camo.githubusercontent.com/593daa2e62367ffab9af5284a21fc575b4e24a04f4d493f5f3295b37290bd0a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63656b757274652f747769747465722d6c696b652e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/twitter-like)[![SensioLabsInsight](https://camo.githubusercontent.com/0ff4930e03e8ebf8d879afb87c87cb67eab49e8cfc55a75ff716d8a9f6968893/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38353232383462342d346230302d346134392d623935322d3364363262393534656634612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/852284b4-4b00-4a49-b952-3d62b954ef4a)

- Just another simple web application that can be used to test the integration between the AngularJS and Silex PHP micro framework. So, this project is a cool and simplest version of Twitter micro blogging with a web responsible interface (thanks TwitterBootstrap) and with a REST API provided by Silex (thanks SensioLabs), **contribute with this project**!

Installation
------------

[](#installation)

- The package is available on [Packagist](http://packagist.org/packages/cekurte/twitter-like).
- The source files is [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) compatible.
- Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compatible.

```
git clone https://github.com/jpcercal/twitter-like.git
cd twitter-like/
composer install
bower install
npm install
mkdir -p storage/cache
chmod +x app/console
chmod -Rf 777 storage/
cp .env.example .env

# change your database credentials
nano .env

grunt
# run "grunt production" to minify and optimize the web files
```

Now, you must create a MySQL database named `twitter_like` (this name can be changed in your `.env` file). After, you must type the command on your terminal:

```
php app/console orm:schema-tool:create
```

This command will create the entities on your MySQL database.

### Running a Web Server

[](#running-a-web-server)

After the steps that you followed to install this application, you must run a web server. So, type the following command on your terminal to create a web server.

```
$ php -S 0.0.0.0:8080 -t public/ public/index.php
```

Note that this command must be executed on root directory of this web application.

Now you can open your browser and access the application  that looks like with the following screenshot:

[![TwitterLike](https://camo.githubusercontent.com/ebaea1539eea56e040da15cfa7058df494e28974604f54ff584d034de02da50a/68747470733a2f2f7261772e6769746875622e636f6d2f6a7063657263616c2f747769747465722d6c696b652f6d61737465722f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/ebaea1539eea56e040da15cfa7058df494e28974604f54ff584d034de02da50a/68747470733a2f2f7261772e6769746875622e636f6d2f6a7063657263616c2f747769747465722d6c696b652f6d61737465722f73637265656e73686f742e706e67)

API Documentation
-----------------

[](#api-documentation)

Well, you can see below the HTTP routes where this application will handle your requests.

**GET** */* will load the web application.

**GET** */api/post* will load the posts from database in two format and return the results in two different formats (`json` or `xml`).

```
[
    {
        "id":5,
        "created_at":"2016-05-19 01:24:34",
        "message":"Could you help me, please?"
    },
    {
        "id":4,
        "created_at":"2016-05-19 01:24:01",
        "message":"I'm a ZCPE (Zend Certified PHP Engineer) and I work with PHP since 2010."
    },
    {
        "id":3,
        "created_at":"2016-05-19 01:23:19",
        "message":"Hey guys, good morning!"
    },
    {
        "id":2,
        "created_at":"2016-05-19 01:23:04",
        "message":"Hello, how are you?"
    },
    {
        "id":1,
        "created_at":"2016-05-19 01:22:52",
        "message":"My first message."
    }
]
```

Or in XML if you send a request with the `Accept` header with the value `text/xml`:

```

        Could you help me, please?]]>

        I'm a ZCPE (Zend Certified PHP Engineer) and I work with PHP since 2010.]]>

        Hey guys, good morning!]]>

        Hello, how are you?]]>

        My first message.]]>

```

**POST** */api/post* will receive a content type as `application/json` with the following content:

```
{
    "message":"Could you help me, please?"
}
```

This request will create a resource on your entity Post and will return a response where the content type will be `application/json` with the following content:

```
{
    "id": 6,
    "created_at": "2016-05-19 01:24:34",
    "message": "Could you help me, please?"
}
```

**If you liked of this project, give me a *star =)*.**

Contributing
------------

[](#contributing)

1. Give me a star **=)**
2. Fork it
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Make your changes
5. Run the tests, adding new ones for your own code if necessary (`vendor/bin/phpunit`)
6. Commit your changes (`git commit -am 'Added some feature'`)
7. Push to the branch (`git push origin my-new-feature`)
8. Create new Pull Request

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24144f054fdc5938c707bdc103ac458dcb3b2b0891bb891a5d8f4840128bd632?d=identicon)[jpcercal](/maintainers/jpcercal)

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cekurte-twitter-like/health.svg)

```
[![Health](https://phpackages.com/badges/cekurte-twitter-like/health.svg)](https://phpackages.com/packages/cekurte-twitter-like)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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