How to install a package from github into plain PHP in Xampp - php

I am a beginner in PHP and my confusion might sound weird. I want to use this package https://github.com/mtibben/html2text into a php code that I have written. Now I am unable to understand how to install this package on localhost. I am using XAMPP on windows 10 laptop.

Related

How to switch php version when running composer? [duplicate]

This question already has answers here:
Tell Composer to use Different PHP Version
(26 answers)
Closed 1 year ago.
I have composer installed on windows 8.1. I use it to download drupal distributions and modules. I have also installed acquia dev desktop. As you know that dev desktop comes with different versions of php and it has separate folders for it. I have setup composer to use php 5.6. How can I make it use php 7?
Should I uninstall composer and install again or what?
IF you have multiple php version installed in your system
you can run composer with different versions like
In linux
PHP
usr/local/php usr/bin/composer install
for PHP 7.1
usr/local/php7.1 /usr/local/composer install
actually the idea is which version you wants to run get its bin path and then run the composer.
In Windows.
path/to/php.exe composer install
Hope this helps
If you just want to ignore the php version dependency then you can use this -
--ignore-platform-reqs
Example:
composer require symfony/css-selector --ignore-platform-reqs
This way you don't have to edit Environment variables(windows os) or using any full path of php etc. This very useful when I use different php lib from github which requires different php version set in my windows Environment variables though I have all PHP versions in my WAMP server so it will not be any problem running those lib after installing.
In my case worked with this:
ea-php72 /opt/cpanel/composer/bin/composer update

OpenEMR Installation error Step 3

I'm trying to install OpenEMR in a windows 10 VM for a college project. I have downloaded the latest XAMPP package for MySQL and PHP. I keep getting this error when trying to install any help greatly appreciated
Two options to consider here:
Install the XAMPP/OpenEMR package instead (has XAMPP/PHP is pre-configured for OpenEMR):
https://www.open-emr.org/wiki/index.php/OpenEMR_5.0.0_XAMPP_Package_Installation
If instead still wish to try to get native XAMPP to work with OpenEMR (is not easy), ensure you have the proper PHP settings:
https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F

phpmyadmin only showing source code

I am trying to develop my own website on a ubuntu 16.04 machine with php7.
I have got everything working including php7, apache2, mysql but when I got to the installation of phpmyadmin, I hit a roadbump and was doing alot of googling and tried tons of suggestions I found but I still failed to get the installation complete.
After I did apt-get install phpmyadmin, the package got installed but when I went to 127.0.0.1/phpmyadmin/ I only see the source code.
I made sure I had all the extensions I needed and I also made sure php is running correctly on apache by doing a classic php.info()
P.S. I am installing from scratch and not doing and upgrade from an old system.
Many thanks!
source code for phpmyadmin

Symfony2 installing vendors in Windows

I'm new in symfony2, I have an instance when I'm trying to installing vendors in windows using the below command.
php app/console bin/vendors install
after this command I got the below errors
In mac and linux this command works but in windows it is not working properly. In windows After this command it deletes some of the folder in vendor .
Does anybody knows about this why it happens in windows?
I helped a poor (actually he uses windows seven like you, so he must be kind of rich) friend of mine the other day with the very same issue. Just install git-bash and you'll be fine. Plus, git-bash will provide you with a waaaaaaay better cli than what you have for the moment.
You can install it from here. Make sure you check the git-bash option.

All-in-one PHP bundle for Ubuntu

I need to deploy Zend Framework app on Ubuntu.
I've downloaded Ubuntu desktop, installed using apt-get apache+php+mysql,
but PHP turned out to be not the latest 5.3, but 5.2.1 and even
mysql extension is missing.
I understand I can get somewhere a fresh php installation, get dependent libs (like curl or libxml2) compile them one by one and then I get full-features latest PHP bundle.
But is there anywhere already full PHP bundle with latest version and all libs to get
ZF app running very quickly?
One of the downsides of package management is that you're at the mercy of the package maintainers. Ubuntu has opted not to update to PHP 5.3 in this version, so you'll have to either wait until 2010 for it or compile PHP yourself.
Most of the PHP extensions that arent in a default source build directly from PHP are in seperate apt packages. If you do a search for PHP5 in you package manager youll see packages like:
PHP5
PHP5-Mysql
PHP5-cli
PHP5-SQLite
etc..
Im going to assume that there are also packages specifically for php 5.3 - most likely labeled as php53-* or something similar. You may need to adda repo for this as im not sure its in the crore repos.
Anyhow you need to isntall all these packages that you need to use.
I ran into similar issues getting the latest PHP on my CentOS server. I installed Zend Server Community Edition, which sets up it's own Apache/PHP5.3 stack in /usr/local/zend. And here's a Getting Started article.
It's a full PHP bundle.
If you need other packages for Ubuntu, check the ubuntu repository for PHP5 at http://bg.archive.ubuntu.com/ubuntu/pool/main/p/php5/

Categories