Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I wonder If there are any APIs or something for php to interact with GIT?
I want to print out information about branches, repositories etcetc, on a web page.
Is this possible?
A quick search turns up a github project https://github.com/kbjr/Git.php - which has a PHP library for accessing git using proc_open and usable in git safe mode.
It seems to be fairly easy to use. According to the api documents, you'd be able to get a list of branches in an array with these commands:
require_once('Git.php');
$repo = Git::open('/path/to/repo');
$branch_array = $repo->list_branches();
You'd substitute your own repo path. You would need the git commands installed for that to work.
As for creating a whole web page, there are complete systems for this - cgit, gitweb, gitphp and a number of others so it may be worth considering if any of those could be configured to meet your needs before creating a completely new tool.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to be more efficient in my work and take steps to stray away from SFTP.
I see services like "Deployhq" or "Docker" but they are not free.
I am hoping to automated myself in the idea that I just type in "git push" in my command line, and it would automatically deploy to my server as it pushes to git?
Does anyone have an idea on where to go? I look into Jenkin CI/CD but I am not sure if that is the correct direction.
Much appreciated.
This is mostly going to depend on your hosting company I believe. Some companies allow you to set up a git deploy usually through some form of control panel.
If you are hosting the site yourself or have access to the server and can ssh/install git, you can clone the repo to the server and set up a hook so that the server will pull changes whenever you push up to the remote repository.
Here are some good links on how git hooks work and how to create one:
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I developed a php web application in windows. As you know there is two service needed to do this; APACHE and MYSQL.
But my application will be hosted in custom computers, possibl no apache and no mysql in it. So I need a windows setup that install these services and also check if they are already exist and running.
Its my first time face with this, so please be as clear as possible on advices and examples.
Thank you
Under Windows environment, the simplest way is to install EasyPHP. To do this in an automated way, you'll need an install script (for quiet install for example). Check the website for details.
Hope it helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to start working with PHP frameworks like Laravel, Symphony or Zend-framework2!
But I've understood I'm completely mixed up with different applications I should install before using those frameworks like "Composer", "Git" or "Pyrus".
My BIG question is: What are these things and How should I act with them?
Thanks.
Composer is a dependency manager, if your project uses third party libraries Composer will keep them up to date for you and provide you with an autoloader to use them.
GIT is version control software and effectively lets you back-up your code, provide other people will access to it and provide a log of all changes.
Pyrus is a PEAR installer.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I wonder If there are any APIs or something for php to interact with GIT?
I want to print out information about branches, repositories etcetc, on a web page.
Is this possible?
A quick search turns up a github project https://github.com/kbjr/Git.php - which has a PHP library for accessing git using proc_open and usable in git safe mode.
It seems to be fairly easy to use. According to the api documents, you'd be able to get a list of branches in an array with these commands:
require_once('Git.php');
$repo = Git::open('/path/to/repo');
$branch_array = $repo->list_branches();
You'd substitute your own repo path. You would need the git commands installed for that to work.
As for creating a whole web page, there are complete systems for this - cgit, gitweb, gitphp and a number of others so it may be worth considering if any of those could be configured to meet your needs before creating a completely new tool.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running.
So where to go to get such thing?
XAMPP and instructions:
http://www.pendriveapps.com/xampp-portable-web-server/
I'd try WAMP; hopefully it has what you are looking for.
I suggest XAMPP also but instead of pendriveapp fork, you can use the original "xampp lite" package served from their offical site. I's pretty portable and you can use without setup.
By the way, your problem will not be the choosing package. Problem is, you'll need an extremly fast flash drive or card.