Grow your team on GitHub
GitHub is home to over 40 million developers working together. Join them to grow your own development teams, manage permissions, and collaborate on projects.
- This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags. zendframework/zf1.
- Zend Framework. Our goal with the Zend Framework project is to let you spend your time developing business logic, not plumbing. Zend is the primary sponsor of the Zend Framework open source project, the most popular framework for modern, high-performing PHP applications.
Zend framework free download. Tiki Wiki CMS Groupware 'Software made the wiki way' A full-featured, web-based, multilingual (40+ languages), tightly inte.
![Download free zend framework Download free zend framework](https://image.isu.pub/181217200121-2277f9bae2b97a2d20d94c70c6904a6a/jpg/page_1_thumb_large.jpg)
![Zend Framework Download Zend Framework Download](/uploads/1/2/6/1/126126431/562558782.png)
- PHP 74 49 26 (3 issues need help) 10 Updated
Oct 10, 2019 zend-validator
Validator component from Zend FrameworkPHP 134 173 41 (1 issue needs help) 8 UpdatedOct 10, 2019 - PHPBSD-3-Clause 23 93 6 (1 issue needs help) 1 Updated
Oct 9, 2019 - PHP 111 85 51 (2 issues need help) 18 Updated
Oct 9, 2019 - PHP 145 100 101 (8 issues need help) 54 Updated
Oct 9, 2019 zend-expressive-platesrenderer
Plates integration for ExpressivePHP 16 9 0 0 UpdatedOct 8, 2019 zend-expressive-authentication-oauth2
OAuth2 (server) authentication middleware for PSR-7 applications.PHPBSD-3-Clause 22 35 11 (1 issue needs help) 3 UpdatedOct 7, 2019 zend-expressive
PSR-15 middleware in minutes!PHP 223 771 18 (3 issues need help) 1 UpdatedOct 7, 2019 - PHPBSD-3-Clause 76 1,541 28 (1 issue needs help) 3 Updated
Oct 6, 2019 zend-hydrator
Object hydrators and array extractionPHP 42 151 2 1 UpdatedOct 4, 2019 - PHPBSD-3-Clause 95 68 49 (3 issues need help) 2 Updated
Oct 4, 2019 zend-expressive-session-ext
PHP ext-session persistence adapter for zend-expressive-session.PHP 12 13 3 4 UpdatedOct 2, 2019 zend-stratigility
Middleware for PHP built on top of PSR-7 and PSR-15PHP 67 244 3 3 UpdatedOct 1, 2019 zend-diagnostics
Universal set of diagnostic tests for PHP applications.zend-session
Manage and preserve session data, a logical complement of cookie data, across multiple page requests by the same client.PHPBSD-3-Clause 65 41 22 0 UpdatedOct 1, 2019 zend-servicemanager-di
zend-di <-> zend-servicemanager integrationPHP 12 7 1 2 UpdatedOct 1, 2019 zend-servicemanager
ServiceManager component from Zend FrameworkPHP 94 182 13 12 UpdatedOct 1, 2019 zend-serializer
Serializer component from Zend FrameworkPHP 20 40 2 1 UpdatedOct 1, 2019 zend-router
Standalone routing implementation for HTTP and console requestsPHP 22 29 6 1 UpdatedOct 1, 2019 zend-expressive-session-cache
PSR-6 session persistence adapter for zend-expressive-session.PHP 10 10 0 0 UpdatedOct 1, 2019
Active7 years, 2 months ago
'installing Zend Framework is so easy!!!!' yeah right...
Ok I'm working with a beginner's book and the ONE thing that is not excessively detailed is the most important part: Installing the darn thing. After browsing the quickstart guide for hours, all it said was:
'download Zend [...] add the include directory (bla bla) and YOU'RE DONE!'
right, i'm done using Zend.
Ok, not really, not yet anyway. I beg of you people, I wanna go to bed, please tell me how (in simple 6th grade detail) to install the framework. I've got the unzipped folder in my htdocs directory, and I placed zf.bat+zf.php in the htdocs root.
What's next?
thank you so much.
Gal
GalGal10.7k2828 gold badges8888 silver badges114114 bronze badges
8 Answers
It seems like you're having trouble with the
PATH
in the Windows command shell. This is independent of Zend Framework. Understanding the PATH
concept in a shell environment is a hurdle many programmers have to overcome, but once you get it, you can use it to increase your productivity.You can always run a program from the command shell using that program's absolute path. For example:
You can also run a command using a relative path. That is, you enter the path from your current working directory to the location of the program you want to run.
But if you run a command in the command shell without naming the full path to the executable, the shell tries to find the program executable in one of the directories listed in your
PATH
environment variable. That is, the path is a string with directory names separated by semicolons. To run an executable, the shell tries each directory in that list, in order, as if you hadSpecial case: running
php.exe
also works if your current working directory happens to be the location of that program executable. But that's just an example of using a relative path, using a path with zero directory levels.Second problem is that you're running
zf.bat
which is a script that in turn invokes php.exe
without specifying a path. It assumes you have added the location of php.exe
to your PATH
environment variable. The
zf.bat
script itself also needs to be found. You can do this by adding the directory where it resides to your PATH
. Assuming you installed Zend Framework under C:zf
, for example:I would also recommend that you install Zend Framework outside your
htdocs
directory. There's only one PHP file you need under your htdocs
: that is the single bootstrap file that Zend Framework uses to instantiate the Front Controller and dispatch the request.When you use
zf.bat
to generate an skeleton application for you, it creates a directory public
with a PHP script index.php
inside that directory. This index.php
file is the one you need to be in your htdocs
directory. You also need assets like CSS, Javascript, and images to be under your htdocs
. The rest of your application code, and the entire Zend Framework itself, should be outside your htdocs
. Especially any config files where you store sensitive data such as your database password, etc.You can edit the
index.php
file. It may define a PHP constant APPLICATION_PATH
, which is the location of the rest of your application code. That default definition for
APPLICATION_PATH
assumes that your htdocs
is a sister directory to the rest of your application code generated by the zf.bat
tool. You can certainly put your app code anywhere else, but you have to change the above code so that the index.php
script finds it.Also the
index.php
script may add the location of library code to PHP's INCLUDE_PATH
. This is useful if you need to make the Zend Framework library findable, or if you use other third-party PHP code in your application. Assuming you installed Zend Framework under C:zf
, you should add its library
subdirectory to your PHP INCLUDE_PATH
.The code templates generated by the
Bill KarwinBill Karwinzf.bat
script try to make sensible default guesses about where your code is located, but your environment is your own, and it's easy to edit these scripts to specify the true location where you installed your code and libraries.402k6767 gold badges554554 silver badges706706 bronze badges
The framework doesn't have to be in the htdocs folder, it can be anywhere. Once you decompressed it somewhere you're 50% done.
Next step is to locate your php.ini file (for instance create a file
<?php phpinfo();?>
in your htdocs folder execute it and look for 'Configuration (php.ini) filepath' (or similar) in the first block. In that file add the path to the ZendFramework to the include_dir
directive. This has to include the library
folder. Your setting might look like this:Often it also includes the path to PEAR.
Then restart your server.
You are done.
markus34.4k2323 gold badges9292 silver badges137137 bronze badges
johannesjohannes13.6k11 gold badge3535 silver badges5555 bronze badges
- Zend != Zend Framework
- Zend Framework doesn't need to be installed. It is merely a library, it just needs to be placed somewhere.
- As johannes says you need to tell php where to look for the library so you add the folder where the Zend Framework library is located to your php include path.
That's it, there is nothing more!
Now it seems that your real problem has nothing to do with Zend Framework as such. You're trying to use Zend_Tool but the command line tool zf.bat is not on your system path so you are not able to use the command 'zf'. Zend Framework works fine without the tool, if you want to use it anyways, invoke the command, when you're in the folder where zf.bat resides or add the path to zf.bat to your system path.
This means in a non-vague way:
markusmarkus34.4k2323 gold badges9292 silver badges137137 bronze badges
Derived from http://normankosmal.com/wordpress/?p=47:
casperOne66.5k1414 gold badges161161 silver badges228228 bronze badges
vikram raghuwanshivikram raghuwanshi
Gal - I had the same problem. We must be working on the same book this weekend.
I solved the project-creation problem when I figured out that in the terminal window, you need to first navigate to the PHP home directory you created.
So in other words if you are in the PHP5 folder, type 'zf create project c:/Apache/htdocs/projectname'
I had the same issue re: missing php.exe file until I figured this out.
--
That's the good news. The bad news is you're going to have similar problems when you try setting up Controllers and Actions, and my fix won't work for this. I still haven't figured this out, so I'll post again with more info and perhaps the others can help.
user226002user226002
Easier to read if I type it here.
Here's a step-by-step:
- open terminal window
- type cd c:
- type cd php
- type zf create project c:/APACHE/htdocs/PROJECTNAME
Substitute your directory and project names where I used all caps.
That should work. Notice that you had to navigate to the PHP home directory because this is where the php.exe file is, and this is where the zf.bat and zf.php files are. Apparently both are required when using Zend_Tool.
user226002user226002
You don't say what web stack you're using, but the simplest way that I've found to work with Zend on Windows is to install Zend Core. This installs a complete stack pre-configured with the Zend Framework.
Joe InternetJoe Internet
Gal, I don't understand what do you want to do.
There is no installation or configuration for the framework. You just have to
- Unpack the framework anywhere
- Create a project running zf create 'myproject'
- Create a shourtcut/link in
/library => root folder of the framework
. You can also just unpack the whole framework in this folder (/library) but if you have many projects, you will end with many copies of the framework using diskspace. - change you apache configuration for opening /myproject/public/index.php when redirecting the web browser to your site.
I mean, this have nothing to do with zf, if you create a site in your computer, you have to tell Apache where is it.
You always can run zf.bat writing the whole path. If zf.bat returns un error, then very probably you have problems with you php installation.
Zend Framework Download For Mac
Just in case it's helpful, this is my apache configuration (httpd.conf) for a project named zf_cms
Then you have to add this line to %windir%system32driversetchosts
Alex AngelicoAlex AngelicoZend Framework Download File
1,92344 gold badges2323 silver badges4040 bronze badges