Install lithium php framework - php

I'm a long time codeigniter framework user, and I love how you can just download it, extract and upload to your server via ftp and that's it, ready to go.
Now, I'm curious to try lithium framework, but oh my, command prompts, shell access, github...
That's out of my scope, plus I dont have shell access to my host.
Do I really need all that? Can I not just download it, extract and upload via ftp?
Thanks in advance!

Not sure what you mean, the lithium framework has a direct link to their download: http://sourceforge.net/projects/li3/files/
Or you can go to github and click on ZIP : https://github.com/UnionOfRAD/lithium

#Wyck and #Tomen have it right, shell access helps as does git(hub)...but it's optional.
Here's a quick tutorial to get lithium up and running without shell access or command prompts:
Read the docs! Seriously, just browse the quickstart to get a feel for lithium
Create a directory in your web root (/var/www/newsite, c:\inetpub\wwwroot\newsite, whatever applies to your situation)
Download the sample lithium app. This is really just an empty boilerplate app
Extract the sample lithium app into your new website root. Your website root should look like this:
Download the lithium framework and extract it into /libraries/lithium/. Example:
The rest is up to you. You'll have to configure your database connections, bootstrap, etc.. on your own.

There is no official comment on this. Usually it is expected that you have shell access. But from a short look on my docs i can say the following:
You will not need shell access if:
You have FTP access
The basic setup of your web server corresponds to that expected by lithium. For example: Apache 2 + mod_rewrite enabled + PHP 5.3
This should give you the basic functionality of Lithium. If you want to use data sources like MongoDB or CouchDB, thats a different story and you would have to check if your server already supports these. If not, you would need shell access to install and configure them appropriately.

Related

Is it possible to use Zend Framework on a platform other than ZendServer/Cloud

Title says it all really. The only thing I'd like to add is to say that after initial look at the paid versions of Zend Server, it looks like in terms of cost, I would be losing the advantages of not developing a web/cloud application on Microsoft's expensive Azure platform if I did choose to go with Zend. I like the look of the Zend Framework though and am considering using it on an open source LAMP stack. Or should I go with Symfony / CakePHP on LAMP to keep costs down?
The answer to your (actual, answerable) question is: Yes.
The framework is just a bunch of libraries (just like all frameworks); and you do the following:
Go to the download page.
Register (its free), and then download "Zend Framework Full Package".
Make sure the files are available to your application, by placing them in a directory to which the user that will execute your scripts (it is normally the same user that run the webserver, for example www-data).
Follow the get starting guide.
If you like build tools, you can also use composer to automatically download ZF2 for you, by following the instructions on this page.

Creating a Yii application setup / installation page

I am creating an application and will be deployed to production soon.
For the ease of convenience, I would like to create a custom setup and installation page which will allow users to input variable values to be used in config/main.php as well as to execute the RBAC setup and create necessary tables.
For most web application, there is an 'install' folder which users point their browsers to and begin the app installation. How do I implement something similar in Yii?
I think a great start were the app manager extension which provides much of what you need. It doesn't do anything with the RBAC setup, though. Perhaps you want the auth extension as well?
Yii does not have an installation folder, you just download and extract it and put in your server like Wamp/Xampp or etc. and then you can install a new Yii application through command prompt.
C:\wamp\bin\php\php5.4.16> "c:\wamp\www\yii\framework\yiic.bat" webapp "c:\wamp\
www\newyii"
When you run above command, then you will see the following command.
Create a web application under 'c:\wamp\www\newyii'? [no]:
You write Y. and then create your new application.
For more understanding. you should follow the below link.
http://www.yiiframework.com/doc/guide/1.1/en/quickstart.installation
Thanks.

Restler API framework installation

I want to start using Restler to develop a Rest api but, I couldn't find any detail information on how to install it, besides, it seems to run on a nginx server.
Is there a way to run this framework on apache? Are there other alternatives for building high quality APIS? Is there a detail documentation about installing this framework?
I must be able to run this framework on apache and using php5.3
Thanks
you have to enable apache mod_rewrite
I'm running restler (somewhat modified) for an API (api.hostingxs.nl). It works fine on apache with PHP 5.3. Just clone the repository from github (git clone https://github.com/Luracast/Restler.git <yourdirectory>) and start including classes that use it (read the manual).
If you need more directions I can post some sample code, but the basic functionality is really easy if you understand Object Oriented PHP.
First off, redirect all requests to your restler domain, folder to the index.php and create that file with something like this:
require_once( "restler.php" ); # or whatever you need to link to
$r = new Restler;
$r -> handle();
# above is the basic functionality without any of your own things
Click on the classes in the following link to read more about setting up your own classes; help.luracast.com/restler/examples/_002_minimal/readme.html
If you're wanting to create a RESTful API, then I created a lightweight framework for exactly that: https://github.com/martinbean/api-framework

Zend OpenID with PHP

I'm using the Zend OpenID library found here. I see there is a demo up, which works beautifully, but I don't see any source included for login.php. When I bring the files into my local apache and try to replicate what I see by viewing the source in the demo, I see an interface. When trying to use one of the login options, I see it makes posts like
http://localhost/zfopenid/public/user/login?action=verify&openid_username=&openid_identifier=http%3A%2F%2Fopenid.aol.com%2F
so there is certainly some php involved in that login file that I'm not able to see. I tried including application/controllers/UserController.php, but I get
Fatal error: Class 'Zend_Controller_Action' not found in /var/www/zfopenid/application/controllers/UserController.php on line 3
I don't know this Zend OpenID library but it sounds interesting. The problem is, at first look, it is tightly integrated into the Zend Framework and not a stand alone library. You'll have to run it as ZF application or find the components and then try if you can use them.
UPDATE If you want to test the downloaded application you have to make the /public directory your web root directory and the index.php your default root file. Then you can open the demo yourself. Again if you like to integrate it into your project it will be difficult because for what I see so far there is code all over the place which makes it increasingly difficult if you want it as a stand alone application.

Include Mediawiki in php application

Is there a way from my PHP application to include a single file from the MediaWiki installation, and everything would work fine?
I first tried doing an iFrame, but clicking some of the links inside the iFrame doesn't work.
It seems that only possible way to use MediaWiki engine for your own application is to install a separate instance on it on your server (source + db). Then you'll be able to use it through API.
Pros:
Easy to update;
Can be used with any application built on any platform;
Cons:
It's not too easy to install and maintain MediaWiki;
You should use external interface for it even from your script. Say, you should use CURL requests from your PHP application to your Wiki even if they are situated on one host.
Large overheat, 'cause you can't use only Wiki-parser.

Categories