Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 86 | | All time: 10,018 This week: 43 |
|
Description | | Author |
This package implements a social network application similar to Twitter.
It implements a Web application that allows users to register and post text content for others to view.
Currently, it implements several actions to manage users and posts content:
- Register new user
- Login a user
- Insert a new user post
- List user posts
- Delete user posts | |
|
|
Innovation award
Nominee: 5x |
|
Example
<?php
use Phalcon\Di\FactoryDefault;
error_reporting(E_ALL);
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/app');
try {
/**
* The FactoryDefault Dependency Injector automatically registers
* the services that provide a full stack framework.
*/
$di = new FactoryDefault();
/**
* Handle routes
*/
include APP_PATH . '/config/router.php';
/**
* Read services
*/
include APP_PATH . '/config/services.php';
/**
* Get config service for use in inline setup below
*/
$config = $di->getConfig();
/**
* Include Autoloader
*/
include APP_PATH . '/config/loader.php';
/**
* Handle the request
*/
$application = new \Phalcon\Mvc\Application($di);
echo str_replace(["\n","\r","\t"], '', $application->handle()->getContent());
} catch (\Exception $e) {
echo $e->getMessage() . '<br>';
echo '<pre>' . $e->getTraceAsString() . '</pre>';
}
|
Details
Hexis Twitter Clone
Setup
Required software
-
Phalcon - __read installation instructions__
-
GIT - Optional
Installation
If you have setup Phalcon then use GIT to clone this repo to your local environment or download and extract it manually, somewhere where web server can access it.
Second, you have to import twitter.sql to your MySQL server.
Modify app/config/config.php database entry to your needs and according to your database settings.
You should also setup virtual host to your project but that is not required.
Attention
Admin user credentials are admin@twitter.com
and temp123
.
MySQL user credentials are User: twitter
, password: temp1234
.
Feedback
Please leave comments, suggestions, open issues if you find some bugs and thank you for your time.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.