Iron.io worker + Laravel 4 - mcrypt extension required - php

I am trying Iron Workers with Laravel 4. I managed to upload the code but it can't run it on the server because Laravel requires mcrypt extension. Does anyone know how can I install it on iron servers? I followed this tutorial but they don't say anything about this problem.
Thanks,
Cezar

Cezar, you can try this package to integrate IronWorker to your Laravel app.

Related

Symfony Native Debian

I installed symfony 2.8 on debian 9. Using native packages from the link repository.
Debian9 Package Symfony
Installed several components that use symfony, for example doctrine, twig, asset, etc.
In debian they were divided between /var/lib/dpkg and /usr/share folders.
In /var/lib/dpkg it is displayed that in the info folder are the .list of each component.
Result folder info
I searched for related information to make a "hello world" by displaying the native symfony and it's really little or nothing I got.
I have used and implemented projects in symfony in a traditional way with versions 2.8, 3.x. And I really can't emulate it with the native, as you would normally work.
Has anyone managed to deploy symfony natively?
Any help or tip will be welcome.
Thank you in advance.
Package from debian seems to install symfony 2.8 and the docs for this are:
https://symfony.com/doc/2.8/best_practices/creating-the-project.html
Simply by using:
symfony new blog
this should generate a basic app for you and then you should run
php app/console server:run
and if you visit http://localhost:8000/ in your browser you should see your app according to
https://symfony.com/doc/2.8/setup.html

upgrade laravel 4.1 to 5 step by step

I am trying to upgrade my laravel 4.1.30 project to laravel 5. But I searched instructions online many times, even official described not clearly.Please lead me to be able to upgrade step by step.
Yes, you can I'm also in a process of doing upgrade with a project from 4.0 to 5.
Currently I have upgraded from 4.0 to 4.2 and now gonna upgrade it to 5 as well.
What I figured out is that you have to follow all upgrade process step by step as described in the guide.
https://laravel.com/docs/5.3/upgrade
It means, you have to do all small upgrades as well for example, "Upgrading To 4.1.29 From <= 4.1.x" also needs to be done.
I hope it helps.

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.

How to add a library that is not for laravel 4.2?

I have this Library from Context.io
https://github.com/contextio/contextio-php-example
The Context.io 2.0 has laravel,
The Context.io Lite does not.
Im Using The Lite version because its Free.
I would like the Context.io Lite Library installed in my Laravel 4.2.
How to add Context.io Lite Library in my Laravel 4.2 application?
Additional Information:
Im developing an API
Using PHP laravel 4.2
I want to integrate Context.io Lite
Context.io Lite Library does not have many files. Just 4 files.php
I'm a developer on the Context.IO team, though only passingly familiar with Laravel. Laravel uses Composer so it should be simple to add the Lite library. Just add this to your composer.json file, which should be in the root of your Laravel project:
"require": { "contextio/php-contextio-lite": "dev-master" }
Then run composer install from the command line to install the library.
The example project can give you some basics to help you get started. Also, don't hesitate to contact the dev team at support#context.io for additional support if you need it.

How to run multiple versions of Symfony PHP Framework

I have several web projects built with Symfony v1.0, but I am excited by the new features in Symfony version 1.4 (Improved security, native email support and improved performance).
How can I continue to develop my 1.0 projects but also create a testing environment for version 1.4?
Guide to Installing Multiple versions of Symfony
Thankyou to Guillaume Flandre for pointing it out, there is a fantastic article written by eHabib on SymfonyNerds.com - http://symfonynerds.com/blog/?p=123
Here is the basic outline, read the whole article here.
Step 1 - Un-install Symfony via PEAR
Step 2 - Setup a structure for Symfony: Install symfony in /usr/share/php/symfony
Step 3 - Checkout each Symfony version you need
Use SVN checkout to grab each Symfony version. Put these in a different folder under the base Symfony directory.
Step 4 - Create symbolic links for each version
Create and test symlinks for each version of Symfony. Lets place these in the standard bin directory
Step 5 - Creating a new project
Use the relevant Symfony command. For example, to create a Symfony 1.0 project:
sudo symfony10 init-project test1
sudo symfony11 generate:project test11
sudo symfony12 generate:project test12
Step 6 - Check in the project Config to ensure its picked up the right version.
This link should be useful: http://symfonynerds.com/blog/?p=123
It points to an article named: Your complete guide to running multiple Symfony versions on the same environment
It's fairly easy to do.
As also said in the article, I define it in lib/vendor as svn:externals: symfony http://svn.symfony-project.com/branches/1.2
So there's no symfony to be installed on the server at all and you can use as many versions without influence on other apps.

Categories