Send SMS with Python 3 & Twilio.com

Send SMS with Python 3 & Twilio.com

==========================================

 

If you wanted in your PHP web site or Python Program, send SMS you can follow below :

https://www.twilio.com/docs/sms/quickstart/php

https://www.twilio.com/docs/sms/tutorials/how-to-send-sms-messages-python

https://lse-blogs.s3-eu-west-1.amazonaws.com/personal/SMS-Python3-Twilio-provider.zip

The latter zip file is a complete Python program – when you press switch [press space bar emulated here] eg Enter a PC Lab room the switch turn True… then recorded in TXT file the date/time entered, appear on the Pygame window this time, and an SMS sent to your Mobile.

Requirements

1

Trial Free Twilio account – a limit on free SMS

2

Twilio credentials lines 15-16

# Your Account Sid and Auth Token from twilio.com/console
# DANGER! This is insecure. See http://twil.io/secure
account_sid = ”
auth_token = ”

3

Twilio Telephone number provided by Twilio account and your own mobile number [SMS delivered]  lines 70-71

from_=’+11234567890′, # personal Twilio account telephone number
to=’+11234567890′ # your number – notified / delivered the SMS

 

if you need help contact me

LSE

 

Linux Distributions with most pre installed Software

Linux Distributions with most pre installed Software/Apps/Games

===============================

Coming Soon !

For Now Check Out / Googling

  1. Ubuntu Studio OS – Creators Distro
  2. Zorin OS Educational – Educational/Student Distro
  3. Debian – Raspbian OS for PCs and Macs – Educational/Programming/Projects w/ Pi Distro

========================================

Useful Composer PHP Package Manager Commands

Useful Composer PHP 7 Package Manager Commands

==========================

 

Composer is fairly easy to update, just run this command:
composer self-update

Composer works by using the configuration in a file called composer.json, where you can
outline external dependencies and your autoloading style. Once Composer has installed
dependencies listed in this file, it writes a composer.lock file that details the exact
versions it has installed. When using version control it is important that you commit this file
(alongside the composer.json file), don’t add it to your .gitignore file if you’re on Git.
This is very important because the lock file details the exact version of a package that was
installed at a particular time in your version control system. You can, however, exclude a
directory called vendor,

So now we can add the following markup to the composer.json file:

{
  "autoload": {
    "psr-4": {
      "IcyApril\\ChapterOne": "src/"
    }
  }
}
So let me explain what this file does; it tells Composer to autoload everything in the

So, the next step is to create our src directory where we include the code we want to
autoload. Done that? Right, now let's open up our command line and move into the
directory where we've put our composer.json file.
In order to install everything in the composer.json file in your project just run the
composer install command. For subsequent updates, the composer update command
will update to the latest versions of all dependencies as defined in composer.json. If you
don't want to do this, though, there is an alternative; running the composer dump-autoload
command will solely regenerate the list of the PSR-0/PSR-4 classes that need to
be included in the project (for example, you add, delete, or rename some of your classes).
Now let me cover how you will actually go about creating a class. So, let's create an src
directory in our project and in that src directory create a new class called Book. You can do
this by creating a file called Book.php. In that file, add something like this:

<?php
namespace IcyApril\ChapterOne;

class Book
{
  public function __construct()
  {
    echo "Hello world!";
  }
}


?>

The line after you put in your PHP opening tag, we need to pull in our autoloader script:
require_once('vendor/autoload.php');

Then we can instantiate our Book class:
new \IcyApril\ChapterOne\Book();