Download the PHP
package petlid/rssreader without Composer
On this page you can find all versions of the php package
petlid/rssreader. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor petlid Package rssreader Short Description PHP class for getting an rss-feed License
MIT
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.
Since rssreader is designed for Anax/MVC framework and is dependant on it, it is required that you get the framework before following the steps below.
Anax/MVC is located at https://github.com/mosbth/Anax-MVC.git.
rssreader also uses SimplePie, include it in the composer.json located in the root
:"require": { "simplepie/simplepie": "dev-master" }.
Download
You can either download this repo as a .zip-file or you can use composer to get the package through packagist
by adding the following line in the composer.json located in the root:
"require": { "petlid/rssreader": "dev-master" }.
Setup
To use rssreader you'll have to set it up as a controller in Anax/MVC,
Important replace :url with the url (in quotation marks) of the RSS-feed you'd like to display.
To view the RSS-feed you can add a route to the viewAction in your front controller like this:
the name of the added route is irrelevant. To access the route simply go to your front controller, for example index.php, and add '/rss' to the url.
Notice:noOfItems is the number of rss-articles you want in your feed. It is optional (and defaults to 5).
Lastly, copy the contents of petlid\rssreader\view into Anax-MVC\app\view.
Optional
You can choose to get some basic styling of the RSS-feed by copying the catalog petlid\rssreader\css into Anax-MVC\webroot and
adding the stylesheet in the front controller from which you call $app->theme->addStylesheet('css/rss.css');
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 petlid/rssreader contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.