Add Captcha Image to laravel App without installing any package - php

I already uploaded a laravel app and my boss wants me to add a captcha image to the website, now I researched a lot of captcha techniques for laravel and it all requires me to install a package, the problem is I dont want to reupload the website. Any solutions on this?

No matter what you do, you're going to need to write code and upload it.

Yes there exists a way using php library in laravel without using composer http://www.onlinekurukshetra.com/using-captcha-in-laravel-without-composer/ works fine for me.
Also custom validation using laravel for validating the captcha is there. But Need a way validate it client side. Think you have to made custom code for it.

Related

Symfony - How to upload large files to onedrive?

Hello, how are you?
Currently, I am building a symfony project(symfony 5.4).
I am going to write a standalone upload script to upload backup files(.zip files) automatically to OneDrive.
And the files are up to 5 GB.
But I am not sure what should I start from and how to implement it.
If someone who has experiences in it, please let me know the way.
Any comment or suggestion will welcome.
Thanks.
In the spirit of open source, whenever you need a specific requirement, most probably someone else has published a library for it. You are in luck because there is already https://github.com/krizalys/onedrive-php-sdk. You can either use that library or reverse engineer from the source code to implement into your Symfony code base.

How to add OAuth2 Server on a CakePHP 3 plugin

I am working on a plugin in CakePHP3 and I need to create a simply Oauth 2.0 Server API that allows to do a simple CRUD on the users' table and create sessions when needed.
I have done some research here in StackOverflow and it seems that the best choice would be
https://github.com/uafrica/oauth-server
Now, I have tried to make it work according to the doc in the repository but since it will be a plugin, not the core of the application I do not understand how it is supposed to work and which file I need to update.
Would somebody be so kind to give me the list of steps I need to follow and the actual files that need to be updated?
Many Thanks in advance
The uafrica/oauth-server project is woefully out of date. It requires v4.1 of league/oauth2-server, which is now currently at v7.2. Version 5 of that project was completely rewritten and is not backwards compatible with v4.x.
I don't think there's an out-of-the-box CakePHP 3 plugin that works with the current version of league/oauth2-server.
You'll have to either build your own plugin from scratch, or try to hack the uafrica/oauth-server project to get it work with league/oauth2-server.

Laravel - Vue chunk upload - Frontend and Backend example

I use Laravel 5.5 and I tried to use Pion chunk upload to upload large files. I followed the steps and I think backend should work. The problem is that I am unable to make work the frontend uploader. I want to use a vue component for this task and I tried several of them, but the most promising was the Simple Uploader.
Can someone show me a full example of these two working together?

How to put scorm packages externally into moodle?

I have a specific requirement.
How one can put scorm packages externally but using moodle scorm uploading functionality so that the package content will show up in moodle course.
It is like, i am putting all scorm activity details in DB from back end and wants to put the package also from back end without using any UI thing to upload the content.
I can simply move the file but moodle used to encrypt it before storing. so i have to use moodle scorm uploading functionality from backend.
If anyone have any idea or any other way to solve this, Please let me know.
You can enable this feature in site administration. It's called "Enable external package type". Here's instructions.

Backup and download .sql file Laravel 4

A project i am currently working on requires the ability to export the full database with a click of a button in an admin area of a website. I know theres plenty of packages out there for automatic backups to dropbox etc.. But thats not what is required for this project.
I was just wondering is there a fast and easy way to just dump the full database in laravel 4?
I can handle the zipping and downloading of the file once its been dumped just wondering if theres an easy way to dump a database with laravel 4.
Any help appriciated
Thanks
Although packages like https://github.com/heybigname/backup-manager are perfect for backing up a database. They offer a lot more than i needed for this particular project.
In the end i used https://github.com/bradcornford/Backup which is a great package for backing up your database on the fly with one simple method.

Categories