Gestion package ftp - php

Actually i'm in internship and i must add features on a site web who as been implement by someone who have quit the company (So i can only ask help to you :D).
The back-end of this site web is implement in PHP (nice, i'm beginner in PHP)and is hosted on a FTP server. Actually i must implement a JWT authentification, so i need to install PHP-jwt package with vendor (It's what i understood)
composer require firebase/php-jwt
I guess it's working as npm in node but i don't know where to enter this command line as there is no console in FileZilla.
Where should I enter this command line to install php-jwt package ?
Thanks in advance

Related

How to install a git project on a commercial hosted php web setup

I am considering using the following paypal sdk which is available on github:
https://github.com/paypal/Checkout-PHP-SDK
The paypal help at:
https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/
says to install using composer like this:
composer require paypal/paypal-checkout-sdk 1.0.1
However I don't have command line access on my webhosting service so I presume I won't be able to do that?
What are my options?
Presumably I could just manually ftp the required file up to my web host?
Or do I just have to work without the sdk?
My goal is to allow people to buy products via paypal on my website.
Install it in a local environment, do your development and test that it works, then FTP all the files over

Laravel Radius Authentication

System is built onto:
1. Laravel 5.3
2. php70u
3. PHP PECL Radius Package https://pecl.php.net/package/radius
All i want to do is
1. Authenticate users on my own server via custom-built laravel portal (centos 7)
2. And then log them onto FreeRadius server (pfsense BSD machine)
Problem is i don't know how to include this raw, installed radius package into my laravel in a decent way. I don't want to include like raw php.
Thanks in advance.
I wasn't able to find a non-manual way to install the PECL library.
A custom-built laravel portal doesn't help you to both authenticate and authorize on a pfsense machine.
You can only authenticate onto radius server.
Which means, your authentication with freeRadius module does work, but doesn't work with captive portal.
If anybody finds a way around, I'll appreciate.

Composer with satis invalid credentials in a Windows Server

First: sorry for my english, if anyone can edit the question for me.
I'm trying to create a server with satis/composer.
For do that I install composer/statis/git/svn/apache/php/openssl in a Windows Server 2012.
Then I add/edit/create some configurations but composer request an authentication and I don't know why because, accessing web browser, satis display all the packages normally.
my config.json
Error:
Informations:
In the network
Has a proxy
Has a firewall
All computers/notebooks are Windows 7
Composer, Git, Svn are updated
If anyone needs more information leave a comment please.
I found the solution:
I identify the problem executing the curl command and the return is forbidden.
Then I just test the same command without company proxy and works, so that is the problem.
Now, it's works.
Thanks guys.

Can I Install Laravel 4 package without using Composer?

I want to install intervention/image package on my web server i had installed on my localhost , and i want to install it on my web server , Can I Install Laravel 4 package without using Composer? because i don't have acces to use command prompt on my web server.
How are you installing Laravel and the other dependencies already?
Just install it locally like normal then copy your vendor directory along with the rest of your project to your host.
it's possible for you to just upload your vendor directory with ftp, but I wouldn't advise it to you.
Couple of reasons:
You don't want to upload your dev-dependencies, so you would have to handpick which folder to upload - everytime you want to update your dependencies
Uploading over ftp is very slow, so that might take a long time
You don't get the latest versions of the dependencies (which could resolve some security issues)
You wouldn't get any warning if some package isn't compatible with your environment.
I suggest you to use a host that gives you CLI, or even better that can directly run composer when you push up your files, as hannesvdvreken said, fortrabbit (Disclosure: i work there).
If you are running PHP on a shared host without composer you still have some options left:
Install composer on the server in the same folder as your project,
Upload composer.phar to your server,
Change your hosting provider (try fortrabbit),
Upload your vendor folder from your local computer to your server. (Last resort)
Yes you can download it via LaraPack. It provide you ready-to-use Laravel instalation, so you don't have install it with Composer. It also gets weekly update.

Can I Install Laravel without using Composer?

I'd like to know if I can install or use the Laravel PHP framework on any web server without using Composer (PHP package/dependency manager) every time?
I would like to be able to drop my app on to any web server (like a shared server without access to the command line).
If I run composer install the first time (locally), then all the dependencies should be present, correct?
Then, I should be able to drop it onto any server with all of the files (including the vendor directory)?
If you really wanted to, you could do all the work that Composer does manually, but you definitely should not. Installing Composer is easy, it's just a matter of getting the composer.phar file and running commands on it.
You do not need to run Composer on your server as well as locally, once you run composer install or composer update your project will have all its dependencies available and you can just upload it straight to your server.
You cannot install laravel local without composer in your project.
On this site you can download everything what you can download also with the composer build tool. But you do not need a composer installation. Of course laravel is also present there: https://php-download.com/package/laravel/laravel
If you have shared server and you are not able to install composer and run cmd to install a new package or update an existing package.
You can one thing by installing composer on your local machine and install(ex composer require package/name) or update(ex composer update package/name) all the packages, then upload your vendor directory on the server with your code. it will work for you same as in your local environment.
NOTE: I strongly recommend that you should use the Laravel with the composer, it is an important part of laravel and you can try to convince your client to provide a server that supports laravel. Please check the link below and you can find the server requirements. https://laravel.com/docs/5.5#installation
If you don't want to use composer on server then you will have to run composer install/update and download all the libraries locally and then manually upload all those files on the server i.e. Vendor Directory.
In-Case of shared hosting where you can't connect to server with shh there you might have to do that but it will take lot of time to upload all the files on server so I would recommend that you should composer and then download the libraries through composer install/update.
Yes, you can install all project dependencies via composer in your localhost first, and then transfer all the files via FTP to your actual website.
Just download the zip file from github and upload to your htdoc and voilĂ  it will work for you

Categories