Download the PHP package cekurte/twitter-like without Composer
On this page you can find all versions of the php package cekurte/twitter-like. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package twitter-like
TwitterLike
- 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
- The package is available on Packagist.
- The source files is PSR-2 compatible.
- Autoloading is PSR-4 compatible.
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:
This command will create the entities on your MySQL database.
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.
Note that this command must be executed on root directory of this web application.
Now you can open your browser and access the application http://localhost:8080/ that looks like with the following screenshot:
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
).
Or in XML if you send a request with the Accept
header with the value text/xml
:
POST /api/post will receive a content type as application/json
with the following content:
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:
If you liked of this project, give me a star =).
Contributing
- Give me a star =)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
vendor/bin/phpunit
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All versions of twitter-like with dependencies
silex/silex Version ^1.3
twig/twig Version ^1.20
symfony/twig-bridge Version ^3.0
symfony/validator Version ^3.0
symfony/console Version ^2.8
vlucas/phpdotenv Version ^2.2
jdesrosiers/silex-cors-provider Version ^0.1
jdesrosiers/silex-jms-serializer-provider Version ^0.1
dflydev/doctrine-orm-service-provider Version ~1.0
gedmo/doctrine-extensions Version ^2.4
saxulum/saxulum-validator-provider Version ^1.1
cekurte/environment Version ^0.2
cekurte/resource-manager Version ^0.0
cekurte/silex-manager-provider Version ^0.0